Class CLN2SectionReadableAbstract
java.lang.Object
com.io7m.calino.vanilla.internal.CLN2SectionReadableAbstract
- All Implemented Interfaces:
CLNSectionReadableType, AutoCloseable
- Direct Known Subclasses:
CLN2SectionReadableEnd, CLN2SectionReadableImage2D, CLN2SectionReadableImageArray, CLN2SectionReadableImageCube, CLN2SectionReadableImageInfo, CLN2SectionReadableMetadata, CLN2SectionReadableOther
An abstract readable section.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCLN2SectionReadableAbstract(com.io7m.jbssio.api.BSSReaderRandomAccessType inReader, CLNParseRequest inRequest, com.io7m.entomos.core.EoFileSection inSection) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()protected final CLNExceptionerrorLimitExceeded(long length, long limit, String limitName) protected final com.io7m.jbssio.api.BSSReaderRandomAccessTypereader()protected final CLNParseRequestrequest()final com.io7m.entomos.core.EoFileSectionsection()final SeekableByteChannelObtain a readable channel that delivers the data contained within the section.protected final com.io7m.jbssio.api.BSSReaderRandomAccessType
-
Constructor Details
-
CLN2SectionReadableAbstract
protected CLN2SectionReadableAbstract(com.io7m.jbssio.api.BSSReaderRandomAccessType inReader, CLNParseRequest inRequest, com.io7m.entomos.core.EoFileSection inSection)
-
-
Method Details
-
section
public final com.io7m.entomos.core.EoFileSection section()- Specified by:
sectionin interfaceCLNSectionReadableType- Returns:
- A section description
-
request
-
reader
protected final com.io7m.jbssio.api.BSSReaderRandomAccessType reader() -
sectionDataReader
protected final com.io7m.jbssio.api.BSSReaderRandomAccessType sectionDataReader() throws com.io7m.seltzer.io.SIOException- Throws:
com.io7m.seltzer.io.SIOException
-
sectionDataChannel
Description copied from interface:CLNSectionReadableTypeObtain a readable channel that delivers the data contained within the section.- Specified by:
sectionDataChannelin interfaceCLNSectionReadableType- Returns:
- A readable channel
- Throws:
CLNException- On errors
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCLNSectionReadableType
-
errorLimitExceeded
-