| |
|
| java.lang.Object java.io.OutputStream com.izforge.izpack.io.FileSpanningOutputStream
FileSpanningOutputStream | public class FileSpanningOutputStream extends OutputStream (Code) | | An outputstream which transparently spans over multiple volumes. The size of the volumes and an
additonal space for the first volume can be specified.
author: Dennis Reil, |
DEFAULT_ADDITIONAL_FIRST_VOLUME_FREE_SPACE_SIZE | final public static long DEFAULT_ADDITIONAL_FIRST_VOLUME_FREE_SPACE_SIZE(Code) | | |
DEFAULT_VOLUME_NAME | final protected static String DEFAULT_VOLUME_NAME(Code) | | |
DEFAULT_VOLUME_SIZE | final public static long DEFAULT_VOLUME_SIZE(Code) | | |
FILE_NOT_AVAILABLE | final protected static long FILE_NOT_AVAILABLE(Code) | | |
KB | final public static long KB(Code) | | |
MAGIC_NUMER_LENGTH | final public static int MAGIC_NUMER_LENGTH(Code) | | |
MB | final public static long MB(Code) | | |
currentvolumeindex | protected int currentvolumeindex(Code) | | |
filepointer | protected long filepointer(Code) | | |
firstvolumefreespacesize | protected long firstvolumefreespacesize(Code) | | |
maxvolumesize | protected long maxvolumesize(Code) | | |
totalbytesofpreviousvolumes | protected long totalbytesofpreviousvolumes(Code) | | |
FileSpanningOutputStream | public FileSpanningOutputStream(String volumename, long maxvolumesize) throws IOException(Code) | | Creates a new spanning output stream with specified volume names and a maximum volume size
Parameters: volumename - - the name of the volumes Parameters: maxvolumesize - - the maximum volume size throws: IOException - |
FileSpanningOutputStream | public FileSpanningOutputStream(File volume, long maxvolumesize) throws IOException(Code) | | Creates a new spanning output stream with specified volume names and a maximum volume size
Parameters: volume - - the first volume Parameters: maxvolumesize - - the maximum volume size throws: IOException - |
FileSpanningOutputStream | protected FileSpanningOutputStream(File volume, long maxvolumesize, int currentvolume) throws IOException(Code) | | Creates a new spanning output stream with specified volume names and a maximum volume size
Parameters: volume - - the first volume Parameters: maxvolumesize - - the maximum volume size Parameters: currentvolume - - the current volume throws: IOException - |
createStreamToNextVolume | protected void createStreamToNextVolume() throws IOException(Code) | | Closes the stream to the current volume and reopens to the next volume
throws: IOException - |
getCompressedFilepointer | public long getCompressedFilepointer() throws IOException(Code) | | Returns the current position in this file
the position in this file throws: IOException - |
getCurrentVolumeSize | protected long getCurrentVolumeSize()(Code) | | Returns the size of the current volume
the size of the current volume FILE_NOT_AVAILABLE, if there's no current volume |
getFilepointer | public long getFilepointer()(Code) | | |
getFirstvolumefreespacesize | public long getFirstvolumefreespacesize()(Code) | | |
getVolumeCount | public int getVolumeCount()(Code) | | Returns the amount of currently created volumes
the amount of created volumes |
setFirstvolumefreespacesize | public void setFirstvolumefreespacesize(long firstvolumefreespacesize)(Code) | | Parameters: firstvolumefreespacesize - |
|
|
|