Package io.github.rushuat.ocell.document
Class DocumentIO
- java.lang.Object
-
- io.github.rushuat.ocell.document.DocumentIO
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
Document
public abstract class DocumentIO extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description DocumentIO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
fromBytes(byte[] bytes)
void
fromFile(File file)
void
fromFile(String path)
abstract void
fromStream(InputStream stream)
byte[]
toBytes()
void
toFile(File file)
void
toFile(String path)
abstract void
toStream(OutputStream stream)
-
-
-
Method Detail
-
fromStream
public abstract void fromStream(InputStream stream) throws IOException
- Throws:
IOException
-
fromBytes
public void fromBytes(byte[] bytes) throws IOException
- Throws:
IOException
-
fromFile
public void fromFile(File file) throws IOException
- Throws:
IOException
-
fromFile
public void fromFile(String path) throws IOException
- Throws:
IOException
-
toStream
public abstract void toStream(OutputStream stream) throws IOException
- Throws:
IOException
-
toBytes
public byte[] toBytes() throws IOException
- Throws:
IOException
-
toFile
public void toFile(File file) throws IOException
- Throws:
IOException
-
toFile
public void toFile(String path) throws IOException
- Throws:
IOException
-
-