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 TypeMethodDescriptionvoidclose()openSection(CLNFileSectionDescription description) Open a section for reading.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
-
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 interfaceCloseable- Throws:
IOException
-