public class LargeText extends Object
This class defines methods for handling progressive text update.
Constructor and Description |
---|
LargeText(ByteBuffer memory,
boolean completed)
Deprecated.
|
LargeText(File file,
boolean completed)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
doProgressText(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Deprecated.
Implements the progressive text handling.
|
boolean |
isComplete()
Deprecated.
|
void |
markAsComplete()
Deprecated.
|
Reader |
readAll()
Deprecated.
Returns
Reader for reading the raw bytes. |
long |
writeLogTo(long start,
Writer w)
Deprecated.
Writes the tail portion of the file to the
Writer . |
public LargeText(File file, boolean completed)
public LargeText(ByteBuffer memory, boolean completed)
public void markAsComplete()
public boolean isComplete()
public Reader readAll() throws IOException
Reader
for reading the raw bytes.IOException
public long writeLogTo(long start, Writer w) throws IOException
Writer
.
The text file is assumed to be in the system default encoding.
start
- The byte offset in the input file where the write operation starts.IOException
public void doProgressText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
Copyright © 2015. All rights reserved.