|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.archive.FolderArchive
public class FolderArchive
| Constructor Summary | |
|---|---|
FolderArchive(java.lang.String folderName)
|
|
| Method Summary | |
|---|---|
void |
close()
This function must be called after the reader is used. |
protected void |
closeAllStream()
|
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. |
void |
flush()
This function flushs all the buffers in the writer |
RAInputStream |
getInputStream(java.lang.String relativePath)
|
java.lang.String |
getName()
|
RAOutputStream |
getOutputStream(java.lang.String relativePath)
|
RAInputStream |
getStream(java.lang.String relativePath)
returns a sequential access file. |
void |
initialize()
This function must be called before the writer is used. |
boolean |
isOpen()
|
java.util.List |
listAllStreams()
get all the stream in the archive file. |
java.util.List |
listStreams(java.lang.String relativeStoragePath)
|
java.lang.Object |
lock(java.lang.String stream)
try to lock the stream |
void |
open()
This functiona must be called before the reader is used. |
RAOutputStream |
openRandomAccessStream(java.lang.String relativePath)
|
void |
setStreamSorter(IStreamSorter streamSorter)
Set the stream sorter (if needed). |
void |
unlock(java.lang.Object lock)
unlock the stream locked by the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderArchive(java.lang.String folderName)
throws java.io.IOException
absolute - fileName the archive file name
java.io.IOException| Method Detail |
|---|
public void initialize()
throws java.io.IOException
IDocArchiveWriter
initialize in interface IDocArchiveWriterjava.io.IOExceptionpublic java.lang.String getName()
getName in interface IDocArchiveReadergetName in interface IDocArchiveWriter
public RAOutputStream createRandomAccessStream(java.lang.String relativePath)
throws java.io.IOException
IDocArchiveWriter
createRandomAccessStream in interface IDocArchiveWriterrelativePath - -
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.IOException
public RAOutputStream openRandomAccessStream(java.lang.String relativePath)
throws java.io.IOException
openRandomAccessStream in interface IDocArchiveWriterjava.io.IOException
public RAOutputStream createOutputStream(java.lang.String relativePath)
throws java.io.IOException
createOutputStream in interface IDocArchiveWriterjava.io.IOException
public RAOutputStream getOutputStream(java.lang.String relativePath)
throws java.io.IOException
getOutputStream in interface IDocArchiveWriterjava.io.IOException
public RAInputStream getInputStream(java.lang.String relativePath)
throws java.io.IOException
getInputStream in interface IDocArchiveReadergetInputStream in interface IDocArchiveWriterjava.io.IOExceptionpublic boolean dropStream(java.lang.String relativePath)
IDocArchiveWriter
dropStream in interface IDocArchiveWriterrelativePath - -
the relative path of the stream
public boolean exists(java.lang.String relativePath)
exists in interface IDocArchiveReaderexists in interface IDocArchiveWriterrelativePath - - 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.
Used mainly for sequential streams in report.
public void setStreamSorter(IStreamSorter streamSorter)
IDocArchiveWriter
setStreamSorter in interface IDocArchiveWriterstreamSorter - -
the stream sorter
public void finish()
throws java.io.IOException
IDocArchiveWriter
finish in interface IDocArchiveWriterjava.io.IOException
public void open()
throws java.io.IOException
IDocArchiveReader
open in interface IDocArchiveReaderjava.io.IOException
public RAInputStream getStream(java.lang.String relativePath)
throws java.io.IOException
IDocArchiveReader
getStream in interface IDocArchiveReaderrelativePath - - 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.
Used mainly for sequential streams in report.
java.io.IOException
public java.util.List listStreams(java.lang.String relativeStoragePath)
throws java.io.IOException
listStreams in interface IDocArchiveReaderrelativeStoragePath - - 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.IOException
public java.util.List listAllStreams()
throws java.io.IOException
IDocArchiveReader
listAllStreams in interface IDocArchiveReaderjava.io.IOException
public void close()
throws java.io.IOException
IDocArchiveReader
close in interface IDocArchiveReaderjava.io.IOExceptionpublic boolean isOpen()
public void flush()
throws java.io.IOException
IDocArchiveWriter
flush in interface IDocArchiveWriterjava.io.IOExceptionprotected void closeAllStream()
public java.lang.Object lock(java.lang.String stream)
throws java.io.IOException
IDocArchiveReader
lock in interface IDocArchiveReaderlock in interface IDocArchiveWriterjava.io.IOExceptionpublic void unlock(java.lang.Object lock)
IDocArchiveReader
unlock in interface IDocArchiveReaderunlock in interface IDocArchiveWriterlock - object returned by the lock().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||