Package org.datavec.api.io
Class DataInputBuffer
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.datavec.api.io.DataInputBuffer
-
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
public class DataInputBuffer extends DataInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description DataInputBuffer()
Constructs a new empty buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
int
getLength()
Returns the length of the input.int
getPosition()
Returns the current position in the input.void
reset(byte[] input, int length)
Resets the data that the buffer reads.void
reset(byte[] input, int start, int length)
Resets the data that the buffer reads.-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Method Detail
-
reset
public void reset(byte[] input, int length)
Resets the data that the buffer reads.
-
reset
public void reset(byte[] input, int start, int length)
Resets the data that the buffer reads.
-
getData
public byte[] getData()
-
getPosition
public int getPosition()
Returns the current position in the input.
-
getLength
public int getLength()
Returns the length of the input.
-
-