Uses of Class
de.bernd_michaely.common.io.random.RandomAccessDataException
-
Packages that use RandomAccessDataException Package Description de.bernd_michaely.common.io.random de.bernd_michaely.x3f.extractor.cli de.bernd_michaely.x3f.types de.bernd_michaely.x3i.types -
-
Uses of RandomAccessDataException in de.bernd_michaely.common.io.random
Subclasses of RandomAccessDataException in de.bernd_michaely.common.io.random Modifier and Type Class Description class
RandomAccessDataClosedException
Exception type thrown if trying to use aRandomAccessData
which has already been closed.class
RandomAccessEndOfDataException
Specialized RandomAccessDataException type to indicate an error when trying to read beyond the end of a data source.Methods in de.bernd_michaely.common.io.random that throw RandomAccessDataException Modifier and Type Method Description void
RandomAccessData. close()
void
RandomAccessDataScope. close()
void
RandomAccessFileChannelImpl. close()
void
RandomAccessFileImpl. close()
void
RandomAccessFileStreamImpl. close()
static RandomAccessData
RandomAccessDataFactory. createInstance(byte[] bytes)
Creates a byte array based instance of aRandomAccessData
type.static RandomAccessData
RandomAccessDataFactory. createInstance(RandomAccessData data, long offset, long length)
Creates aRandomAccessData
source for accessing a limited area of an underlyingRandomAccessData
source.static RandomAccessData
RandomAccessDataFactory. createInstance(File file, RandomAccessDataFactory.AccessType accessType)
Creates aFile
based instance of aRandomAccessData
type.static RandomAccessData
RandomAccessDataFactory. createInstance(Path file)
long
RandomAccessByteArrayImpl. getCurrentOffset()
long
RandomAccessData. getCurrentOffset()
Returns the current offset within this data.long
RandomAccessDataScope. getCurrentOffset()
long
RandomAccessFileChannelImpl. getCurrentOffset()
long
RandomAccessFileImpl. getCurrentOffset()
long
RandomAccessFileStreamImpl. getCurrentOffset()
long
RandomAccessByteArrayImpl. getLength()
long
RandomAccessData. getLength()
Returns the length of the data in bytes.long
RandomAccessFileChannelImpl. getLength()
long
RandomAccessFileImpl. getLength()
long
RandomAccessFileStreamImpl. getLength()
void
RandomAccessByteArrayImpl. readBytes(byte[] buffer, int offset, int length)
byte[]
RandomAccessByteArrayImpl. readBytes(int length)
void
RandomAccessData. readBytes(byte[] buffer, int offset, int length)
Reads an array of bytes of the given length from this data source into the given buffer at the given offset.byte[]
RandomAccessData. readBytes(int length)
Reads an array of bytes of the given length from this data source.void
RandomAccessDataScope. readBytes(byte[] buffer, int offset, int length)
byte[]
RandomAccessDataScope. readBytes(int length)
void
RandomAccessFileChannelImpl. readBytes(byte[] buffer, int offset, int length)
byte[]
RandomAccessFileChannelImpl. readBytes(int length)
void
RandomAccessFileImpl. readBytes(byte[] buffer, int offset, int length)
byte[]
RandomAccessFileImpl. readBytes(int length)
void
RandomAccessFileStreamImpl. readBytes(byte[] buffer, int offset, int length)
byte[]
RandomAccessFileStreamImpl. readBytes(int length)
int
RandomAccessByteArrayImpl. readUnsignedByte()
int
RandomAccessData. readUnsignedByte()
Reads an unsigned eight bit number from this data.int
RandomAccessDataScope. readUnsignedByte()
int
RandomAccessFileChannelImpl. readUnsignedByte()
int
RandomAccessFileImpl. readUnsignedByte()
int
RandomAccessFileStreamImpl. readUnsignedByte()
void
RandomAccessByteArrayImpl. setCurrentOffset(long offset)
void
RandomAccessData. setCurrentOffset(long offset)
Sets the current offset within this data.void
RandomAccessDataScope. setCurrentOffset(long offset)
void
RandomAccessFileChannelImpl. setCurrentOffset(long offset)
void
RandomAccessFileImpl. setCurrentOffset(long offset)
void
RandomAccessFileStreamImpl. setCurrentOffset(long offset)
Constructors in de.bernd_michaely.common.io.random that throw RandomAccessDataException Constructor Description RadInputStream(RandomAccessData randomAccessData)
Provides a view to the underlyingRandomAccessData
data source in full length as anInputStream
.RadInputStream(RandomAccessData randomAccessData, long offset, long length)
Provides a view to a subregion of the underlyingRandomAccessData
data source as anInputStream
.RandomAccessFileChannelImpl(Path file)
-
Uses of RandomAccessDataException in de.bernd_michaely.x3f.extractor.cli
Methods in de.bernd_michaely.x3f.extractor.cli that throw RandomAccessDataException Modifier and Type Method Description protected void
CommandLineProcessor. parseFovData(Path file, boolean readFirstFOVbOnly, BiConsumer<RandomAccessData,FovDataType> resultHandler)
protected void
CommandLineProcessor. writeJpgToFile(X3fData x3fData, RandomAccessData data, Path fileDest)
protected void
CommandLineProcessor. writeX3fToFile(X3fData x3fData, RandomAccessData data, Path fileDest)
-
Uses of RandomAccessDataException in de.bernd_michaely.x3f.types
Methods in de.bernd_michaely.x3f.types that throw RandomAccessDataException Modifier and Type Method Description protected X3fHeader
X3fHeaderFactory. createHeader(RandomAccessData data, UInt32 version)
Creates an instance of an X3fHeader object which is appropriate for the given data version or null, if the version is unsupported.boolean
UInt32. findPrefix(RandomAccessData randomAccessData, String prefix)
Searches the data source for a string prefix.boolean
UInt32. findUnsigned32(RandomAccessData randomAccessData, long unsignedInteger32)
Searches the data source for a 32 bit value.BufferedImage
X3fImageData. getBufferedImage(RandomAccessData data)
Returns a processed for preview image decoded as a BufferedImage.ByteArray
X3fImageData. getImageData(RandomAccessData data)
Returns raw image data stream contained in a byte array.String
ByteArray. getUTF16z(int offset)
Get UTF-16 encoded zero terminated substring.void
X3fPropertyList. read(RandomAccessData data)
Method to parse and collect information contained in a X3F property list.protected void
ByteArray. readBytes(RandomAccessData randomAccessData, int length)
Reads the given number of bytes into this ByteArray object.void
UInt32. readUnsigned32(RandomAccessData randomAccessData)
Sets this value by reading a little endian unsigned 32 bit value from the given data.boolean
X3fImageData. writeImage(RandomAccessData data, OutputStream os)
Writes this image as JPEG to an OutputStream.Constructors in de.bernd_michaely.x3f.types that throw RandomAccessDataException Constructor Description UInt32(RandomAccessData randomAccessData)
Initializes this value by reading four unsigned bytes from the given data.X3fDirectory(RandomAccessData data)
Constructor to parse and collect information contained in a X3F direcrory section.X3fDirectoryEntry(RandomAccessData data)
Constructor to read from a data source.X3fHeader_2_1(VersionNumber version, RandomAccessData data)
X3fHeader_2_x(VersionNumber version, RandomAccessData data)
X3fHeader_3_x(VersionNumber version, RandomAccessData data)
X3fHeader_4_x(VersionNumber version, RandomAccessData data)
X3fImageData(RandomAccessData data, int dataLength, int rotation)
Constructor to parse and collect information contained in a X3F image section.X3fPropertyListHeader(RandomAccessData data)
Constructor to parse and collect information contained in a X3F property list header. -
Uses of RandomAccessDataException in de.bernd_michaely.x3i.types
Methods in de.bernd_michaely.x3i.types that throw RandomAccessDataException Modifier and Type Method Description static void
FovDataFactory. parseOrRecover(byte[] bytes, boolean readFirstFOVbOnly, BiConsumer<RandomAccessData,FovDataType> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.static <R> Optional<R>
FovDataFactory. parseOrRecover(byte[] bytes, boolean readFirstFOVbOnly, BiFunction<RandomAccessData,FovDataType,Optional<R>> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.static void
FovDataFactory. parseOrRecover(File file, boolean readFirstFOVbOnly, BiConsumer<RandomAccessData,FovDataType> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.static <R> Optional<R>
FovDataFactory. parseOrRecover(File file, boolean readFirstFOVbOnly, BiFunction<RandomAccessData,FovDataType,Optional<R>> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.static void
FovDataFactory. parseOrRecover(Path file, boolean readFirstFOVbOnly, BiConsumer<RandomAccessData,FovDataType> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.static <R> Optional<R>
FovDataFactory. parseOrRecover(Path file, boolean readFirstFOVbOnly, BiFunction<RandomAccessData,FovDataType,Optional<R>> resultHandler)
Parses the given data source using the standard parser and if it fails, immediately tries the recovery parser.
-