Package com.io7m.calino.vanilla.internal
Class CLN1FileReadable
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1FileReadable
- All Implemented Interfaces:
CLNFileReadableType
,Closeable
,AutoCloseable
The main readable file implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
openSection
(CLNFileSectionDescription description) Open a section for reading.sections()
long
Obtain the number of trailing octets in the file.version()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.io7m.calino.api.CLNFileReadableType
openEnd, openImage2D, openImageArray, openImageCube, openImageInfo, openMetadata
-
Method Details
-
sections
- Specified by:
sections
in interfaceCLNFileReadableType
- Returns:
- The list of sections in the file
-
version
- Specified by:
version
in interfaceCLNFileReadableType
- Returns:
- The file version
-
openSection
Description copied from interface:CLNFileReadableType
Open a section for reading.- Specified by:
openSection
in interfaceCLNFileReadableType
- Parameters:
description
- The section description- Returns:
- A readable section
-
trailingOctets
public long trailingOctets()Description copied from interface:CLNFileReadableType
Obtain the number of trailing octets in the file. This value should always be zero for valid files.- Specified by:
trailingOctets
in interfaceCLNFileReadableType
- Returns:
- The number of trailing octets
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-