Class CLN2FileReadable
java.lang.Object
com.io7m.calino.vanilla.internal.CLN2FileReadable
- All Implemented Interfaces:
CLNFileReadableType, AutoCloseable
The main readable file implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionCLN2FileReadable(CLNDecompressorFactoryType inDecompressors, com.io7m.jbssio.api.BSSReaderRandomAccessType inBaseReader, com.io7m.entomos.core.EoFileReaderType inReader, CLNParseRequest inRequest) The main readable file implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()openSection(com.io7m.entomos.core.EoFileSection description) Open a section for reading.NavigableSet<com.io7m.entomos.core.EoFileSection> sections()longObtain the number of trailing octets in the file.version()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CLNFileReadableType
openEnd, openImage2D, openImageArray, openImageCube, openImageInfo, openMetadata
-
Constructor Details
-
CLN2FileReadable
public CLN2FileReadable(CLNDecompressorFactoryType inDecompressors, com.io7m.jbssio.api.BSSReaderRandomAccessType inBaseReader, com.io7m.entomos.core.EoFileReaderType inReader, CLNParseRequest inRequest) The main readable file implementation.- Parameters:
inDecompressors- The decompressorsinBaseReader- The base readerinReader- The readerinRequest- The parse request
-
-
Method Details
-
sections
- Specified by:
sectionsin interfaceCLNFileReadableType- Returns:
- The list of sections in the file
-
version
- Specified by:
versionin interfaceCLNFileReadableType- Returns:
- The file version
-
openSection
Description copied from interface:CLNFileReadableTypeOpen a section for reading.- Specified by:
openSectionin interfaceCLNFileReadableType- Parameters:
description- The section description- Returns:
- A readable section
-
trailingOctets
public long trailingOctets()Description copied from interface:CLNFileReadableTypeObtain the number of trailing octets in the file. This value should always be zero for valid files.- Specified by:
trailingOctetsin interfaceCLNFileReadableType- Returns:
- The number of trailing octets
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCLNFileReadableType- Throws:
CLNException
-