public abstract class BufferIORequest extends IoTask
Modifier and Type | Field and Description |
---|---|
protected Buffer |
buffer |
static java.lang.String |
END_OFFSETS |
static java.lang.String |
ERROR_OCCURRED
Buffer boolean property set when an error occurs.
|
static int |
IOBUFSIZE
Size of I/O buffers.
|
static java.lang.String |
LOAD_DATA |
protected java.lang.String |
markersPath |
static java.lang.String |
NEW_PATH |
protected java.lang.String |
path |
static int |
PROGRESS_INTERVAL
Number of lines per progress increment.
|
protected java.lang.Object |
session |
protected VFS |
vfs |
protected View |
view |
Modifier | Constructor and Description |
---|---|
protected |
BufferIORequest(View view,
Buffer buffer,
java.lang.Object session,
VFS vfs,
java.lang.String path)
Creates a new buffer I/O request.
|
Modifier and Type | Method and Description |
---|---|
protected java.io.Reader |
autodetect(java.io.InputStream in)
Tries to detect if the stream is gzipped, and if it has an encoding
specified with an XML PI.
|
protected void |
endSessionQuietly() |
static int |
getByteIOBufferSize()
Size of byte I/O buffers.
|
static int |
getCharIOBufferSize()
Size of character I/O buffers.
|
protected SegmentBuffer |
read(java.io.Reader in,
long length,
boolean insert) |
java.lang.String |
toString() |
protected void |
write(Buffer buffer,
java.io.OutputStream out) |
_run, cancel, getLabel, getMaximum, getState, getStatus, getValue, isCancellable, run, setCancellable, setLabel, setMaximum, setStatus, setValue
public static final int IOBUFSIZE
public static final int PROGRESS_INTERVAL
public static final java.lang.String LOAD_DATA
public static final java.lang.String END_OFFSETS
public static final java.lang.String NEW_PATH
public static final java.lang.String ERROR_OCCURRED
protected final View view
protected final Buffer buffer
protected final java.lang.Object session
protected final VFS vfs
protected java.lang.String path
protected final java.lang.String markersPath
public static int getCharIOBufferSize()
public static int getByteIOBufferSize()
protected java.io.Reader autodetect(java.io.InputStream in) throws java.io.IOException
java.io.IOException
protected SegmentBuffer read(java.io.Reader in, long length, boolean insert) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected void write(Buffer buffer, java.io.OutputStream out) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected void endSessionQuietly()