|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.archive.compound.ArchiveReader
public class ArchiveReader
| Field Summary | |
|---|---|
protected IArchiveFile |
archive
|
protected boolean |
shareArchive
|
| Constructor Summary | |
|---|---|
ArchiveReader(IArchiveFile archive)
|
|
ArchiveReader(java.lang.String archiveName)
|
|
| Method Summary | |
|---|---|
void |
close()
This function must be called after the reader is used. |
boolean |
exists(java.lang.String relativePath)
|
IArchiveFile |
getArchive()
|
RAInputStream |
getInputStream(java.lang.String relativePath)
|
java.lang.String |
getName()
|
RAInputStream |
getStream(java.lang.String relativePath)
returns a sequential access file. |
java.util.List |
listAllStreams()
get all the stream in the archive file. |
java.util.List |
listStreams(java.lang.String namePattern)
|
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. |
void |
unlock(java.lang.Object locker)
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 |
| Field Detail |
|---|
protected IArchiveFile archive
protected boolean shareArchive
| Constructor Detail |
|---|
public ArchiveReader(IArchiveFile archive)
throws java.io.IOException
java.io.IOException
public ArchiveReader(java.lang.String archiveName)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
IDocArchiveReader
close in interface IDocArchiveReaderjava.io.IOExceptionpublic IArchiveFile getArchive()
public boolean exists(java.lang.String relativePath)
exists 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.
public java.lang.String getName()
getName in interface IDocArchiveReader
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 RAInputStream getInputStream(java.lang.String relativePath)
throws java.io.IOException
getInputStream in interface IDocArchiveReaderjava.io.IOException
public java.util.List listAllStreams()
throws java.io.IOException
IDocArchiveReader
listAllStreams in interface IDocArchiveReaderjava.io.IOException
public java.util.List listStreams(java.lang.String namePattern)
throws java.io.IOException
listStreams in interface IDocArchiveReadernamePattern - - 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 void open()
throws java.io.IOException
IDocArchiveReader
open in interface IDocArchiveReaderjava.io.IOException
public java.lang.Object lock(java.lang.String stream)
throws java.io.IOException
IDocArchiveReader
lock in interface IDocArchiveReaderjava.io.IOExceptionpublic void unlock(java.lang.Object locker)
IDocArchiveReader
unlock in interface IDocArchiveReaderlocker - object returned by the lock().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||