public interface POIService extends Service
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current POI file system.
|
byte[] |
getDocumentBytes(String file)
Retrieve all of the raw bytes that correspond to the given file name.
|
byte[] |
getDocumentBytes(String file,
int length)
Retrieve at most 'length' bytes that correspond to the given file name.
|
Vector<String> |
getDocumentList()
Retrieve a list of all files in the current POI file system.
|
RandomAccessInputStream |
getDocumentStream(String file)
Retrieve a RandomAccessInputStream corresponding to the given file name.
|
int |
getFileSize(String file)
Retrieve the total number of bytes in the given file.
|
InputStream |
getInputStream(String file)
Retrieve an InputStream corresponding to the given file name.
|
void |
initialize(RandomAccessInputStream stream)
Construct a new POI filesystem around the given stream.
|
void |
initialize(String file)
Construct a new POI filesystem around the given file.
|
void initialize(String file) throws IOException
IOException
- if an error occurred when opening the file.void initialize(RandomAccessInputStream stream) throws IOException
IOException
- if an error occurred when reading from the stream.InputStream getInputStream(String file) throws IOException
file
- The name of the embedded file for which to
retrieve an InputStream.IOException
- if an error occurred when reading the fileRandomAccessInputStream getDocumentStream(String file) throws IOException
file
- The name of the embedded file for which to
retrieve a RandomAccessInputStream.IOException
- if an error occurred when reading the filebyte[] getDocumentBytes(String file) throws IOException
file
- The name of the embedded file for which to retrieve bytes.IOException
- if an error occurred when reading the filebyte[] getDocumentBytes(String file, int length) throws IOException
file
- The name of the embedded file for which to retrieve bytes.IOException
- if an error occurred when reading the fileint getFileSize(String file)
file
- The name of the embedded file.IOException
- if an error occurred when reading the fileVector<String> getDocumentList()
void close() throws IOException
IOException
Copyright © 2016 Open Microscopy Environment