Package com.io7m.calino.vanilla.internal
Class CLN1FileWritable
java.lang.Object
com.io7m.calino.vanilla.internal.CLN1FileWritable
- All Implemented Interfaces:
CLNFileWritableType,Closeable,AutoCloseable
The main writable file implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createSection(long identifier) Create a new section with the given identifier.sections()version()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.calino.api.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 interfaceCloseable- Throws:
IOException
-