Top Description Constructors Methods
org.apache.poi.poifs.nio

public abstract Class DataSource

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.poi.poifs.nio.FileBackedDataSource, org.apache.poi.poifs.nio.ByteArrayBackedDataSource
Imports
java.io.IOException, .OutputStream, java.nio.ByteBuffer

Common definition of how we read and write bytes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
close()

Close the underlying stream

public abstract void
copyTo(OutputStream stream)

Copies the contents to the specified OutputStream

public abstract ByteBuffer
read(int length, long position)

public abstract long
size()

public abstract void
write(ByteBuffer src, long position)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataSourceback to summary
public DataSource()

Method Detail

closeback to summary
public abstract void close() throws IOException

Close the underlying stream

copyToback to summary
public abstract void copyTo(OutputStream stream) throws IOException

Copies the contents to the specified OutputStream

readback to summary
public abstract ByteBuffer read(int length, long position) throws IOException
sizeback to summary
public abstract long size() throws IOException
writeback to summary
public abstract void write(ByteBuffer src, long position) throws IOException