|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--noope.input.BlockReader | +--noope.input.StringBlockReader
A BlockReader that reads in its data from a String.
Constructor Summary | |
StringBlockReader(java.lang.String s)
|
Method Summary | |
BlockReaderLocation |
getBlockLocation()
Similar to getEntryLocation |
BlockReaderContext |
getContext(BlockReaderLocation loc)
Converts a Location into a fully-qualified Context object. |
BlockReaderLocation |
getEntryLocation()
Returns a BlockReaderLocation object describing the current Entry location. |
java.lang.String |
getHeader()
Returns the header of this block. |
BlockReader |
getNextBlock()
Returns the next subblock, which is an instance of BlockReader. |
java.lang.String[] |
getNextEntry()
Returns the next Entry, as a string array. |
java.lang.String |
getParameter()
Returns the parameter of this block. |
boolean |
hasMoreBlocks()
Returns TRUE if this block has more Blocks after the one that was last returned |
boolean |
hasMoreEntries()
Returns TRUE if this block has more Entries after the one that was last returned |
BlockReader |
peekNextBlock()
This method acts as getNextBlock() but does not advance position |
java.lang.String[] |
peekNextEntry()
This method acts as getNextEntry() but does not advance position |
void |
seekFirstBlock()
Resets the subblock position to the beginning, so that the next call to getNextBlock() will return the first subblock (unless there are no subblocks, in which case an exception is thrown, of course. |
void |
seekFirstEntry()
Moves the "entry pointer" back to the first Entry, so that the next call to getNextEntry() will return the first one in the block |
Methods inherited from class noope.input.BlockReader |
assertEmpty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringBlockReader(java.lang.String s) throws BlockReaderException
Method Detail |
public java.lang.String getHeader()
BlockReader
getHeader
in class BlockReader
public java.lang.String getParameter()
BlockReader
getParameter
in class BlockReader
public boolean hasMoreEntries()
BlockReader
hasMoreEntries
in class BlockReader
public java.lang.String[] getNextEntry() throws BlockReaderException
BlockReader
getNextEntry
in class BlockReader
public java.lang.String[] peekNextEntry() throws BlockReaderException
BlockReader
peekNextEntry
in class BlockReader
public void seekFirstEntry() throws BlockReaderException
BlockReader
seekFirstEntry
in class BlockReader
public BlockReaderLocation getEntryLocation()
BlockReader
getEntryLocation
in class BlockReader
public boolean hasMoreBlocks()
BlockReader
hasMoreBlocks
in class BlockReader
public BlockReader getNextBlock() throws BlockReaderException
BlockReader
getNextBlock
in class BlockReader
public BlockReader peekNextBlock() throws BlockReaderException
BlockReader
peekNextBlock
in class BlockReader
public void seekFirstBlock() throws BlockReaderException
BlockReader
seekFirstBlock
in class BlockReader
public BlockReaderLocation getBlockLocation()
BlockReader
getBlockLocation
in class BlockReader
public BlockReaderContext getContext(BlockReaderLocation loc)
BlockReader
getContext
in class BlockReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |