|
||||||||||
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 java.nio.charset.Charset |
charset
|
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()
|
long |
length()
|
void |
markAsComplete()
|
java.io.Reader |
readAll()
Returns Reader for reading the raw bytes. |
protected void |
setContentType(StaplerResponse rsp)
|
long |
writeLogTo(long start,
java.io.OutputStream out)
Writes the tail portion of the file to the OutputStream . |
long |
writeLogTo(long start,
java.io.Writer w)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.nio.charset.Charset charset
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 long length()
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
java.io.IOException
public long writeLogTo(long start, java.io.OutputStream out) throws java.io.IOException
OutputStream
.
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 void setContentType(StaplerResponse rsp)
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 |