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