public class ArchiveFileV1 extends java.lang.Object implements IArchiveFile
| 构造器和说明 |
|---|
ArchiveFileV1(java.lang.String archiveName) |
ArchiveFileV1(java.lang.String archiveName,
java.io.RandomAccessFile rf) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ArchiveEntry |
createEntry(java.lang.String name) |
boolean |
exists(java.lang.String name) |
void |
flush() |
java.lang.String |
getDependId() |
long |
getLength() |
java.lang.String |
getName() |
java.lang.String |
getSystemId() |
long |
getUsedCache() |
java.util.List<java.lang.String> |
listEntries(java.lang.String namePattern) |
java.lang.Object |
lockEntry(java.lang.String stream) |
ArchiveEntry |
openEntry(java.lang.String name) |
protected void |
readFileTable()
read the stream table from the archive file. the stream table is in the
begining of the file, it contains: long: stream section postiton, always
zero. long: entry number. followed by entries in the archive, each entry
contains: utf8: stream name. long[2]: start offset, length.
|
void |
refresh() |
boolean |
removeEntry(java.lang.String name) |
void |
save() |
void |
setCacheSize(long cacheSize) |
void |
unlockEntry(java.lang.Object locker) |
public ArchiveFileV1(java.lang.String archiveName,
java.io.RandomAccessFile rf)
throws java.io.IOException
java.io.IOExceptionpublic ArchiveFileV1(java.lang.String archiveName)
throws java.io.IOException
java.io.IOExceptionprotected void readFileTable()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
getName 在接口中 IArchiveFilepublic java.lang.String getDependId()
getDependId 在接口中 IArchiveFilepublic java.lang.String getSystemId()
getSystemId 在接口中 IArchiveFilepublic void close()
throws java.io.IOException
close 在接口中 IArchiveFilejava.io.IOExceptionpublic void setCacheSize(long cacheSize)
setCacheSize 在接口中 IArchiveFilepublic long getUsedCache()
getUsedCache 在接口中 IArchiveFilepublic ArchiveEntry createEntry(java.lang.String name) throws java.io.IOException
createEntry 在接口中 IArchiveFilejava.io.IOExceptionpublic boolean exists(java.lang.String name)
exists 在接口中 IArchiveFilepublic void flush()
throws java.io.IOException
flush 在接口中 IArchiveFilejava.io.IOExceptionpublic ArchiveEntry openEntry(java.lang.String name) throws java.io.IOException
openEntry 在接口中 IArchiveFilejava.io.IOExceptionpublic java.util.List<java.lang.String> listEntries(java.lang.String namePattern)
listEntries 在接口中 IArchiveFilepublic void refresh()
throws java.io.IOException
refresh 在接口中 IArchiveFilejava.io.IOExceptionpublic boolean removeEntry(java.lang.String name)
throws java.io.IOException
removeEntry 在接口中 IArchiveFilejava.io.IOExceptionpublic java.lang.Object lockEntry(java.lang.String stream)
throws java.io.IOException
lockEntry 在接口中 IArchiveFilejava.io.IOExceptionpublic void unlockEntry(java.lang.Object locker)
throws java.io.IOException
unlockEntry 在接口中 IArchiveFilejava.io.IOExceptionpublic long getLength()
getLength 在接口中 IArchiveFilepublic void save()
throws java.io.IOException
save 在接口中 IArchiveFilejava.io.IOExceptionCopyright © 2008 Actuate Corp. All rights reserved.