Package com.io7m.calino.api
Interface CLNFileReadableType
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
CLN1FileReadable
A readable file.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<CLNSectionReadableEndType>
openEnd()
default Optional<CLNSectionReadableImage2DType>
default Optional<CLNSectionReadableImageArrayType>
default Optional<CLNSectionReadableImageCubeType>
default Optional<CLNSectionReadableImageInfoType>
default Optional<CLNSectionReadableMetadataType>
openSection
(CLNFileSectionDescription description) Open a section for reading.sections()
long
Obtain the number of trailing octets in the file.version()
-
Method Details
-
sections
List<CLNFileSectionDescription> sections()- Returns:
- The list of sections in the file
-
version
CLNVersion version()- Returns:
- The file version
-
openSection
Open a section for reading.- Parameters:
description
- The section description- Returns:
- A readable section
-
openImageInfo
- Returns:
- The first available image info section, if one exists
-
openImage2D
- Returns:
- The first available image 2D section, if one exists
-
openImageCube
- Returns:
- The first available image cube section, if one exists
-
openImageArray
- Returns:
- The first available image array section, if one exists
-
openMetadata
- Returns:
- The first available metadata section, if one exists
-
openEnd
- Returns:
- The first available end section, if one exists
-
trailingOctets
long trailingOctets()Obtain the number of trailing octets in the file. This value should always be zero for valid files.- Returns:
- The number of trailing octets
-