public interface IDocArchiveWriter
| 限定符和类型 | 方法和说明 |
|---|---|
RAOutputStream |
createOutputStream(java.lang.String relativePath) |
RAOutputStream |
createRandomAccessStream(java.lang.String relativePath)
Create a random access stream in the archive and return it.
|
boolean |
dropStream(java.lang.String relativePath)
Delete a stream from the archive.
|
boolean |
exists(java.lang.String relativePath) |
void |
finish()
This function must be called after the writer is used. finalizes the
socument archive.
|
void |
flush()
This function flushs all the buffers in the writer
|
IArchiveFile |
getArchiveFile()
Get archive file
|
RAInputStream |
getInputStream(java.lang.String relativePath) |
java.lang.String |
getName() |
RAOutputStream |
getOutputStream(java.lang.String relativePath) |
void |
initialize()
This function must be called before the writer is used. initialize the
document archive.
|
java.util.List<java.lang.String> |
listAllStreams()
get all the stream in the archive file.
|
java.util.List<java.lang.String> |
listStreams(java.lang.String relativeStoragePath) |
java.lang.Object |
lock(java.lang.String stream)
try to lock the stream
|
RAOutputStream |
openRandomAccessStream(java.lang.String relativePath) |
void |
setStreamSorter(IStreamSorter streamSorter)
Set the stream sorter (if needed).
|
void |
unlock(java.lang.Object locker)
unlock the stream locked by the object.
|
void initialize()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getName()
RAOutputStream createRandomAccessStream(java.lang.String relativePath) throws java.io.IOException
relativePath - -
relative path to report archive path. The path is based on
Unix syntax, with the root of the archive denoted by "/". The
initial "/" character can be skipped.java.io.IOExceptionRAOutputStream openRandomAccessStream(java.lang.String relativePath) throws java.io.IOException
java.io.IOExceptionRAOutputStream createOutputStream(java.lang.String relativePath) throws java.io.IOException
java.io.IOExceptionRAOutputStream getOutputStream(java.lang.String relativePath) throws java.io.IOException
java.io.IOExceptionRAInputStream getInputStream(java.lang.String relativePath) throws java.io.IOException
java.io.IOExceptionboolean dropStream(java.lang.String relativePath)
relativePath - -
the relative path of the streamjava.io.IOExceptionboolean exists(java.lang.String relativePath)
relativePath - -
the relative stream path in the archive. The relative path is
based on Unix syntax, with the root of the archive denoted by
"/". The initial "/" character can be skipped.java.util.List<java.lang.String> listStreams(java.lang.String relativeStoragePath)
throws java.io.IOException
relativeStoragePath - - the relative stream path in the archive. The relative path
is based on Unix syntax, with the root of the archive denoted
by "/". The initial "/" character can be skipped.java.io.IOExceptionjava.util.List<java.lang.String> listAllStreams()
throws java.io.IOException
java.io.IOExceptionvoid setStreamSorter(IStreamSorter streamSorter)
streamSorter - -
the stream sortervoid finish()
throws java.io.IOException
java.io.IOExceptionvoid flush()
throws java.io.IOException
java.io.IOExceptionjava.lang.Object lock(java.lang.String stream)
throws java.io.IOException
stream - java.io.IOExceptionvoid unlock(java.lang.Object locker)
locker - object returned by the lock().java.io.IOExceptionIArchiveFile getArchiveFile()
Copyright © 2008 Actuate Corp. All rights reserved.