|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataStream
| Method Summary | |
|---|---|
void |
close()
Close the stream; this makes further operations invalid. |
boolean |
eof()
Returns true if the stream has reached the end. |
java.lang.String |
getAsString()
Returns a String containing the entire stream. |
java.lang.String |
getLine(boolean trimAfter)
Returns a String containing the next line of data, optionally trimmed for whitespace. |
java.lang.String |
getName()
|
int |
read(VoidPointer buf,
int count)
Read the requisite number of bytes from the stream, stopping at the end of the file. |
int |
readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
Get a single line from the stream. |
void |
seek(int pos)
Repositions the read point to a specified byte. |
int |
size()
Returns the total size of the data to be read from the stream, or 0 if this is indeterminate for this stream. |
void |
skip(long count)
Skip a defined number of bytes. |
int |
skipLine(java.lang.String delim)
Skip a single line from the stream. |
int |
tell()
Returns the current byte offset from beginning |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
java.lang.String getName()
int read(VoidPointer buf,
int count)
int readLine(BytePointer buf,
int maxCount,
java.lang.String delim)
java.lang.String getLine(boolean trimAfter)
java.lang.String getAsString()
int skipLine(java.lang.String delim)
void skip(long count)
void seek(int pos)
int tell()
boolean eof()
int size()
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||