Class CLN2FileWritable
java.lang.Object
com.io7m.calino.vanilla.internal.CLN2FileWritable
- All Implemented Interfaces:
CLNFileWritableType, AutoCloseable
The main writable file implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createSection(long identifier) Create a new section with the given identifier.sections()voidstart()Start the section.version()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CLNFileWritableType
createSectionEnd, createSectionImage2D, createSectionImageArray, createSectionImageCube, createSectionImageInfo, createSectionMetadata
-
Method Details
-
sections
- Specified by:
sectionsin interfaceCLNFileWritableType- Returns:
- The sections currently declared within the file
- Throws:
IOException- On errors
-
version
- Specified by:
versionin interfaceCLNFileWritableType- Returns:
- The file version
-
createSection
Description copied from interface:CLNFileWritableTypeCreate a new section with the given identifier.- Specified by:
createSectionin interfaceCLNFileWritableType- Parameters:
identifier- The identifier- Returns:
- A new section
- Throws:
IOException- On errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCLNFileWritableType- Throws:
CLNException
-
start
public void start() throws com.io7m.seltzer.io.SIOExceptionStart the section.- Throws:
com.io7m.seltzer.io.SIOException- On errors
-