|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.framework.io.LargeText
public class LargeText
Represents a large text data.
This class defines methods for handling progressive text update.
Field Summary | |
---|---|
protected Charset |
charset
|
Constructor Summary | |
---|---|
LargeText(ByteBuffer memory,
boolean completed)
|
|
LargeText(ByteBuffer memory,
Charset charset,
boolean completed)
|
|
LargeText(File file,
boolean completed)
|
|
LargeText(File file,
Charset charset,
boolean completed)
|
Method Summary | |
---|---|
protected Writer |
createWriter(StaplerRequest req,
StaplerResponse rsp,
long size)
|
void |
doProgressText(StaplerRequest req,
StaplerResponse rsp)
Implements the progressive text handling. |
boolean |
isComplete()
|
void |
markAsComplete()
|
Reader |
readAll()
Returns Reader for reading the raw bytes. |
protected void |
setContentType(StaplerResponse rsp)
|
long |
writeLogTo(long start,
OutputStream out)
Writes the tail portion of the file to the OutputStream . |
long |
writeLogTo(long start,
Writer w)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Charset charset
Constructor Detail |
---|
public LargeText(File file, boolean completed)
public LargeText(File file, Charset charset, boolean completed)
public LargeText(ByteBuffer memory, boolean completed)
public LargeText(ByteBuffer memory, Charset charset, boolean completed)
Method Detail |
---|
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
IOException
public long writeLogTo(long start, OutputStream out) throws IOException
OutputStream
.
start
- The byte offset in the input file where the write operation starts.
IOException
public void doProgressText(StaplerRequest req, StaplerResponse rsp) throws IOException
IOException
protected void setContentType(StaplerResponse rsp)
protected Writer createWriter(StaplerRequest req, StaplerResponse rsp, long size) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |