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
ConstructorsModifierConstructorDescriptionprotectedCLN1SectionReadableAbstract(com.io7m.jbssio.api.BSSReaderRandomAccessType inReader, CLNParseRequest inRequest, CLNFileSectionDescription inDescription) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final CLNSectionDescriptionprotected final StringerrorLimitExceeded(long length, long limit, String limitName) protected final com.io7m.jbssio.api.BSSReaderRandomAccessTypereader()protected final CLNParseRequestrequest()final SeekableByteChannelObtain 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:
fileSectionDescriptionin interfaceCLNSectionReadableType- Returns:
- A file section description
-
reader
protected final com.io7m.jbssio.api.BSSReaderRandomAccessType reader() -
description
- Specified by:
descriptionin interfaceCLNSectionReadableType- Returns:
- A section description
-
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:
IOException- On errors
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
errorLimitExceeded
-