|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.io.ArchiveControllers.LiveArchiveStatistics
private static final class ArchiveControllers.LiveArchiveStatistics
| Field Summary | |
|---|---|
private static ArchiveControllers.LiveArchiveStatistics |
SINGLETON
|
| Constructor Summary | |
|---|---|
private |
ArchiveControllers.LiveArchiveStatistics()
You cannot instantiate this singleton class. |
| Method Summary | |
|---|---|
int |
getArchivesTotal()
Returns the total number of archives operated by this package. |
int |
getArchivesTouched()
Returns the number of archives which have been changed and hence need to be processed on the next call to File.update() or
File.umount(). |
int |
getTopLevelArchivesTotal()
Returns the total number of top level archives operated by this package. |
int |
getTopLevelArchivesTouched()
Returns the number of top level archives which have been changed and hence need to be processed on the next call to File.update() or
File.umount(). |
long |
getUpdateTotalByteCountRead()
Returns the total number of bytes read from all non-enclosed archive files which are updated during File.update() or
File.umount(). |
long |
getUpdateTotalByteCountWritten()
Returns the total number of bytes written to all non-enclosed archive files which are updated during File.update() or
File.umount(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final ArchiveControllers.LiveArchiveStatistics SINGLETON
| Constructor Detail |
|---|
private ArchiveControllers.LiveArchiveStatistics()
| Method Detail |
|---|
public long getUpdateTotalByteCountRead()
ArchiveStatisticsFile.update() or
File.umount().
Please note that this method counts input from top level archive
files which require an update only, i.e. archive files which are
actually updated throughout the course of File.update() or
File.update() and are not enclosed in other archive
files and hence are present in the real file system.
This method is intended to be used for progress monitors and is a rough
indicator about what is going on inside the TrueZIP API.
The return value will be reset automatically where required,
so if this value is going to 0 again you know that a knew
update cycle has begun.
Other than this, you should not rely on its actual value.
For an example how to use this please refer to the source
code for nzip.ProgressMonitor in the base package.
getUpdateTotalByteCountRead in interface ArchiveStatisticsFile.update(),
File.umount()public long getUpdateTotalByteCountWritten()
ArchiveStatisticsFile.update() or
File.umount().
Please note that this method counts output to top level archive
files which require an update only, i.e. archive files which are
actually updated throughout the course of File.update() or
File.update() and are not enclosed in other archive
files and hence are present in the real file system.
This method is intended to be used for progress monitors and is a rough
indicator about what is going on inside the TrueZIP API.
The return value will be reset automatically where required,
so if this value is going to 0 again you know that a knew
update cycle has begun.
Other than this, you should not rely on its actual value.
For an example how to use this please refer to the source
code for nzip.ProgressMonitor in the base package.
getUpdateTotalByteCountWritten in interface ArchiveStatisticsFile.update(),
File.umount()public int getArchivesTotal()
ArchiveStatistics
getArchivesTotal in interface ArchiveStatisticspublic int getArchivesTouched()
ArchiveStatisticsFile.update() or
File.umount().
Note that you should not use the returned value to call
File.update() or File.umount() only
conditionally - this is unreliable!
Instead, you should always call one of those methods unconditionally.
getArchivesTouched in interface ArchiveStatisticspublic int getTopLevelArchivesTotal()
ArchiveStatistics
getTopLevelArchivesTotal in interface ArchiveStatisticspublic int getTopLevelArchivesTouched()
ArchiveStatisticsFile.update() or
File.umount().
Note that you should not use the returned value to call
File.update() or File.umount() only
conditionally - this is unreliable!
Instead, you should always call one of those methods unconditionally.
getTopLevelArchivesTouched in interface ArchiveStatistics
|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||