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 BulkDataReferencejava.io.IOExceptionpublic long getLength()
BulkDataReference.getInputStream(). Implementations may return -1 as long as the
bulk data reference is not resolved.getLength in interface BulkDataReferencegetLength in interface DataElementValuepublic long getOffset()
getOffset in interface BulkDataReferencepublic java.nio.ByteOrder getByteOrder()
getByteOrder in interface BulkDataReferencepublic java.io.InputStream getInputStream()
getInputStream in interface BulkDataReferencepublic void release()
throws java.io.IOException
release in interface BulkDataReferencejava.io.IOExceptionpublic java.lang.String getDescription()
getDescription in interface BulkDataReferencegetDescription in interface DataElementValue