Package com.io7m.calino.vanilla.internal
Class CLN1SectionReadableAbstract
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1SectionReadableAbstract
- All Implemented Interfaces:
CLNSectionReadableType
,Closeable
,AutoCloseable
- Direct Known Subclasses:
CLN1SectionReadableEnd
,CLN1SectionReadableImage2D
,CLN1SectionReadableImageArray
,CLN1SectionReadableImageCube
,CLN1SectionReadableImageInfo
,CLN1SectionReadableMetadata
,CLN1SectionReadableOther
An abstract readable section.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CLN1SectionReadableAbstract
(com.io7m.jbssio.api.BSSReaderRandomAccessType inReader, CLNParseRequest inRequest, CLNFileSectionDescription inDescription) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
final CLNSectionDescription
protected final String
errorLimitExceeded
(long length, long limit, String limitName) protected final com.io7m.jbssio.api.BSSReaderRandomAccessType
reader()
protected final CLNParseRequest
request()
final SeekableByteChannel
Obtain a readable channel that delivers the data contained within the section.
-
Constructor Details
-
CLN1SectionReadableAbstract
protected CLN1SectionReadableAbstract(com.io7m.jbssio.api.BSSReaderRandomAccessType inReader, CLNParseRequest inRequest, CLNFileSectionDescription inDescription)
-
-
Method Details
-
request
-
fileSectionDescription
- Specified by:
fileSectionDescription
in interfaceCLNSectionReadableType
- Returns:
- A file section description
-
reader
protected final com.io7m.jbssio.api.BSSReaderRandomAccessType reader() -
description
- Specified by:
description
in interfaceCLNSectionReadableType
- Returns:
- A section description
-
sectionDataChannel
Description copied from interface:CLNSectionReadableType
Obtain a readable channel that delivers the data contained within the section.- Specified by:
sectionDataChannel
in interfaceCLNSectionReadableType
- Returns:
- A readable channel
- Throws:
IOException
- On errors
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
errorLimitExceeded
-