public class FileBulkDataReference extends java.lang.Object implements BulkDataReference
Constructor and Description |
---|
FileBulkDataReference(java.nio.file.Path path) |
FileBulkDataReference(java.nio.file.Path path,
java.nio.ByteOrder byteOrder) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteOrder |
getByteOrder()
return the byte order of the data read from the inputstream.
|
java.lang.String |
getDescription()
returns a descriptive value of this bulk data reference, typically used in dump methods.
|
java.io.InputStream |
getInputStream()
returns an inputstream of the bulk data reference.
|
long |
getLength()
returns the length of this bulk data reference, i.o.w.
|
long |
getOffset()
returns zero.
|
void |
release()
called by JDT when the inputstream is no longer needed.
|
void |
resolve()
resolves the BulkDataReference.
|
public FileBulkDataReference(java.nio.file.Path path)
public FileBulkDataReference(java.nio.file.Path path, java.nio.ByteOrder byteOrder)
public void resolve() throws java.io.IOException
resolve
in interface BulkDataReference
java.io.IOException
public long getLength()
BulkDataReference.getInputStream()
. Implementations may return -1 as long as the
bulk data reference is not resolved.getLength
in interface BulkDataReference
getLength
in interface DataElementValue
public long getOffset()
getOffset
in interface BulkDataReference
public java.nio.ByteOrder getByteOrder()
getByteOrder
in interface BulkDataReference
public java.io.InputStream getInputStream()
getInputStream
in interface BulkDataReference
public void release() throws java.io.IOException
release
in interface BulkDataReference
java.io.IOException
public java.lang.String getDescription()
getDescription
in interface BulkDataReference
getDescription
in interface DataElementValue