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 void
close()
final long
protected final long
protected final long
protected final CLNWriteRequest
request()
final SeekableByteChannel
Obtain 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:
identifier
in interfaceCLNSectionWritableType
- Returns:
- The section identifier
-
offsetStartData
protected final long offsetStartData() -
offsetStart
protected final long offsetStart() -
request
-
sectionDataChannel
Description copied from interface:CLNSectionWritableType
Obtain a writable channel that can write data within the section.- Specified by:
sectionDataChannel
in interfaceCLNSectionWritableType
- Returns:
- A readable channel
- Throws:
IOException
- On errors
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-