Package com.io7m.calino.vanilla.internal
Class CLN1SectionWritableAbstract
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1SectionWritableAbstract
- All Implemented Interfaces:
CLNSectionWritableType,Closeable,AutoCloseable
- Direct Known Subclasses:
CLN1SectionWritableEnd,CLN1SectionWritableImage2D,CLN1SectionWritableImageArray,CLN1SectionWritableImageCube,CLN1SectionWritableImageInfo,CLN1SectionWritableMetadata,CLN1SectionWritableOther
A writable section.
-
Constructor Summary
ConstructorsConstructorDescriptionCLN1SectionWritableAbstract(com.io7m.jbssio.api.BSSWriterRandomAccessType inWriter, CLNWriteRequest inRequest, long inIdentifier, CLNOnCloseOperationType<CLNSectionWritableType> inOnClose) A writable section. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final longprotected final longprotected final longprotected final CLNWriteRequestrequest()final SeekableByteChannelObtain a writable channel that can write data within the section.
-
Constructor Details
-
CLN1SectionWritableAbstract
public CLN1SectionWritableAbstract(com.io7m.jbssio.api.BSSWriterRandomAccessType inWriter, CLNWriteRequest inRequest, long inIdentifier, CLNOnCloseOperationType<CLNSectionWritableType> inOnClose) A writable section.- Parameters:
inOnClose- A function executed on closinginRequest- A write requestinIdentifier- An identifierinWriter- A writer
-
-
Method Details
-
identifier
public final long identifier()- Specified by:
identifierin interfaceCLNSectionWritableType- Returns:
- The section identifier
-
offsetStartData
protected final long offsetStartData() -
offsetStart
protected final long offsetStart() -
request
-
sectionDataChannel
Description copied from interface:CLNSectionWritableTypeObtain a writable channel that can write data within the section.- Specified by:
sectionDataChannelin interfaceCLNSectionWritableType- Returns:
- A readable channel
- Throws:
IOException- On errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-