|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.util.WorkRequest
org.gjt.sp.jedit.buffer.BufferIORequest
public abstract class BufferIORequest
A buffer I/O request.
Field Summary | |
---|---|
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 |
GZIP_MAGIC_1
Magic numbers used for auto-detecting Unicode and GZIP files. |
static int |
GZIP_MAGIC_2
|
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
|
static int |
UNICODE_MAGIC_1
|
static int |
UNICODE_MAGIC_2
|
static int |
UTF8_MAGIC_1
|
static int |
UTF8_MAGIC_2
|
static int |
UTF8_MAGIC_3
|
protected VFS |
vfs
|
protected View |
view
|
static int |
XML_PI_LENGTH
Length of longest XML PI used for encoding detection. |
Constructor Summary | |
---|---|
BufferIORequest(View view,
Buffer buffer,
java.lang.Object session,
VFS vfs,
java.lang.String path)
Creates a new buffer I/O request. |
Method Summary | |
---|---|
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 SegmentBuffer |
read(java.io.Reader in,
long length,
boolean insert)
|
java.lang.String |
toString()
|
protected void |
write(Buffer buffer,
java.io.OutputStream _out)
|
Methods inherited from class org.gjt.sp.util.WorkRequest |
---|
setAbortable, setMaximum, setProgressMaximum, setProgressValue, setStatus, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
public static final int UTF8_MAGIC_1
public static final int UTF8_MAGIC_2
public static final int UTF8_MAGIC_3
public static final int GZIP_MAGIC_1
public static final int GZIP_MAGIC_2
public static final int UNICODE_MAGIC_1
public static final int UNICODE_MAGIC_2
public static final int XML_PI_LENGTH
<?xml version="1.0" encoding="................"?>
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 View view
protected Buffer buffer
protected java.lang.Object session
protected VFS vfs
protected java.lang.String path
protected java.lang.String markersPath
Constructor Detail |
---|
public BufferIORequest(View view, Buffer buffer, java.lang.Object session, VFS vfs, java.lang.String path)
view
- The viewbuffer
- The buffersession
- The VFS sessionvfs
- The VFSpath
- The pathMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
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.io.IOException
protected void write(Buffer buffer, java.io.OutputStream _out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |