|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TCByteBufferInput
Nested Class Summary | |
---|---|
static interface |
TCByteBufferInput.Mark
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
TCByteBufferInput |
duplicate()
Duplicate this stream. |
TCByteBufferInput |
duplicateAndLimit(int limit)
Effectively the same thing as calling duplicate().limit(int), but potentially creating far less garbage (depending on the size difference between the original stream and the slice you want) |
int |
getTotalLength()
|
TCDataInput |
limit(int limit)
Artificially limit the length of this input stream starting at the current read position. |
TCByteBufferInput.Mark |
mark()
This is a TC special version of mark() to be used in conjunction with tcReset()...We should eventually implement the general purpose mark(int) method as specified by InputStream. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
void |
reset()
|
long |
skip(long skip)
|
void |
tcReset(TCByteBufferInput.Mark m)
Reset this input stream to the position recorded by the mark that is passed an input parameter. |
TCByteBuffer[] |
toArray()
|
TCByteBuffer[] |
toArray(TCByteBufferInput.Mark start,
TCByteBufferInput.Mark end)
|
Methods inherited from interface com.tc.io.TCDataInput |
---|
read, readString |
Methods inherited from interface java.io.DataInput |
---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
Method Detail |
---|
TCByteBufferInput duplicate()
TCByteBufferInput duplicateAndLimit(int limit)
TCByteBuffer[] toArray()
TCByteBuffer[] toArray(TCByteBufferInput.Mark start, TCByteBufferInput.Mark end)
TCDataInput limit(int limit)
int getTotalLength()
int available()
void close()
void mark(int readlimit)
TCByteBufferInput.Mark mark()
boolean markSupported()
int read(byte[] b)
int read()
void reset()
void tcReset(TCByteBufferInput.Mark m)
java.lang.IllegalArgumentException
- if m is null or if it was not created against this stream.long skip(long skip)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |