|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.misc.SSIParsedStream
Implements the reading and parsing of an SSI stream. When a SSI directive is encountered, a new instance of this class is created and pushed on a stack.
To simplified the implementation, the entire file is read into a buffer. A previous version attempted to buffer less, but this ended up being a bit tricky due to the need to scan while reading and still maintain the block read() method.
Field Summary | |
static int |
AT_EOF
Character returned to indicate EOF. |
static int |
AT_SSI
Character returned to indicate the beginning of an SSI directive. |
Constructor Summary | |
SSIParsedStream(InputSource source,
LineNumberRecorder lineNumbers)
Constructor. |
|
SSIParsedStream(InputSource source,
LineNumberRecorder lineNumbers,
SSIParsedStream prevStream)
Constructor. |
Method Summary | |
(package private) static void |
Class initializer |
String |
getSystemId()
Get the system id of the associated file. |
SSIDirective |
parseSSIDirective()
Parse the SSI directive that starts at the next available character in the buffer. |
SSIParsedStream |
pop()
Close this input stream, returning the previous stream. |
int |
read()
Read a character. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AT_EOF
public static final int AT_SSI
Constructor Detail |
public SSIParsedStream(InputSource source, LineNumberRecorder lineNumbers) throws IOException
public SSIParsedStream(InputSource source, LineNumberRecorder lineNumbers, SSIParsedStream prevStream) throws IOException
Method Detail |
static void()
public String getSystemId()
public SSIParsedStream pop() throws IOException
public int read() throws IOException
public int read(char[] cbuf, int off, int len) throws IOException
public SSIDirective parseSSIDirective() throws IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |