java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.input.LazyInput |
An input backed by an IDataProvider
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LazyInput(IDataProvider prv, String entryName, long hintEntrySize) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Close that input and free all resources used by this object.
| ||||||||||
SeekableByteChannel |
getChannel()
Get a seekable read-only channel representing the input.
| ||||||||||
long |
getCurrentSize()
Provide the current input size of the input data.
| ||||||||||
ByteBuffer |
getHeader()
Get a read-only, big-endian buffer of the first input bytes.
| ||||||||||
InputStream |
getStream()
Get the input stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Close that input and free all resources used by this object.
Get a seekable read-only channel representing the input. Each call returns a unique channel. Clients should use this method to efficiently read at various locations within the given input.
IOException |
---|
Provide the current input size of the input data.
Get a read-only, big-endian buffer of the first input bytes. Clients should not attempt to
modify or directly access that buffer. The initial position is set to 0. It is recommended
that implementations provide at least IDEAL_HEADER_SIZE
bytes.
Get the input stream. Each call returns a unique stream. Implementors should offer this
method for convenience. The implementor is responsible for closing non-closed streams when
close()
is called.
IOException |
---|