Package org.apache.poi
Class POIReadOnlyDocument
- java.lang.Object
-
- org.apache.poi.POIDocument
-
- org.apache.poi.POIReadOnlyDocument
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public abstract class POIReadOnlyDocument extends POIDocument
This holds the common functionality for all read-only POI Document classes, i.e. ones which don't support writing.- Since:
- POI 3.15 beta 3
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
POIReadOnlyDocument(DirectoryNode dir)
protected
POIReadOnlyDocument(POIFSFileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write()
Note - writing is not yet supported for this file format, sorry.void
write(File file)
Note - writing is not yet supported for this file format, sorry.void
write(OutputStream out)
Note - writing is not yet supported for this file format, sorry.-
Methods inherited from class org.apache.poi.POIDocument
clearDirectory, close, createInformationProperties, getDirectory, getDocumentSummaryInformation, getEncryptedPropertyStreamName, getEncryptionInfo, getPropertySet, getPropertySet, getSummaryInformation, initDirectory, readProperties, readProperties, replaceDirectory, validateInPlaceWritePossible, writeProperties, writeProperties, writeProperties
-
-
-
-
Constructor Detail
-
POIReadOnlyDocument
protected POIReadOnlyDocument(DirectoryNode dir)
-
POIReadOnlyDocument
protected POIReadOnlyDocument(POIFSFileSystem fs)
-
-
Method Detail
-
write
public void write()
Note - writing is not yet supported for this file format, sorry.- Specified by:
write
in classPOIDocument
- Throws:
IllegalStateException
- If you call the method, as writing is not supported
-
write
public void write(File file)
Note - writing is not yet supported for this file format, sorry.- Specified by:
write
in classPOIDocument
- Parameters:
file
- The new File to write to.- Throws:
IllegalStateException
- If you call the method, as writing is not supported
-
write
public void write(OutputStream out)
Note - writing is not yet supported for this file format, sorry.- Specified by:
write
in classPOIDocument
- Parameters:
out
- The stream to write to.- Throws:
IllegalStateException
- If you call the method, as writing is not supported
-
-