public class ArchiveReader extends java.lang.Object implements IDocArchiveReader
| 限定符和类型 | 字段和说明 |
|---|---|
protected IArchiveFile |
archive |
protected boolean |
shareArchive |
| 构造器和说明 |
|---|
ArchiveReader(IArchiveFile archive) |
ArchiveReader(java.lang.String archiveName) |
| 限定符和类型 | 方法和说明 |
|---|---|
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<java.lang.String> |
listAllStreams()
get all the stream in the archive file.
|
java.util.List<java.lang.String> |
listStreams(java.lang.String namePattern) |
java.lang.Object |
lock(java.lang.String relativePath)
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.
|
protected IArchiveFile archive
protected boolean shareArchive
public ArchiveReader(IArchiveFile archive) throws java.io.IOException
java.io.IOExceptionpublic ArchiveReader(java.lang.String archiveName)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
IDocArchiveReaderclose 在接口中 IDocArchiveReaderjava.io.IOExceptionpublic IArchiveFile getArchive()
public boolean exists(java.lang.String relativePath)
exists 在接口中 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 在接口中 IDocArchiveReaderpublic RAInputStream getStream(java.lang.String relativePath) throws java.io.IOException
IDocArchiveReadergetStream 在接口中 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.IOExceptionpublic RAInputStream getInputStream(java.lang.String relativePath) throws java.io.IOException
getInputStream 在接口中 IDocArchiveReaderjava.io.IOExceptionpublic java.util.List<java.lang.String> listAllStreams()
throws java.io.IOException
IDocArchiveReaderlistAllStreams 在接口中 IDocArchiveReaderjava.io.IOExceptionpublic java.util.List<java.lang.String> listStreams(java.lang.String namePattern)
throws java.io.IOException
listStreams 在接口中 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.IOExceptionpublic void open()
throws java.io.IOException
IDocArchiveReaderopen 在接口中 IDocArchiveReaderjava.io.IOExceptionpublic java.lang.Object lock(java.lang.String relativePath)
throws java.io.IOException
IDocArchiveReaderlock 在接口中 IDocArchiveReaderjava.io.IOExceptionpublic void unlock(java.lang.Object locker)
IDocArchiveReaderunlock 在接口中 IDocArchiveReaderlocker - object returned by the lock().Copyright © 2008 Actuate Corp. All rights reserved.