Package org.apache.poi.poifs.nio
Class DataSource
java.lang.Object
org.apache.poi.poifs.nio.DataSource
- Direct Known Subclasses:
ByteArrayBackedDataSource,FileBackedDataSource
Common definition of how we read and write bytes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()Close the underlying streamabstract voidcopyTo(OutputStream stream) Copies the contents to the specified OutputStreamabstract ByteBufferread(int length, long position) abstract longsize()abstract voidwrite(ByteBuffer src, long position)
-
Constructor Details
-
DataSource
public DataSource()
-
-
Method Details
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
size
- Throws:
IOException
-
close
Close the underlying stream- Throws:
IOException
-
copyTo
Copies the contents to the specified OutputStream- Throws:
IOException
-