public class TCZ
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TCZ.Entry
An entry of the TCZ file.
|
Modifier and Type | Field and Description |
---|---|
int |
attr
The attributes.
|
static short |
ATTR_HAS_MAINCLASS
Defines that the tcz file has a MainClass at the first record.
|
static short |
ATTR_HAS_MAINWINDOW
Defines that the tcz file has a MainWindow at the first record.
|
static short |
ATTR_LIBRARY
Defines that the tcz file is a library-only module.
|
static short |
ATTR_RESIZABLE_WINDOW
Defines that the application has resizable window.
|
static short |
ATTR_WINDOWFONT_DEFAULT
Defines that the application uses the default font.
|
static short |
ATTR_WINDOWSIZE_320X480
Defines that the application uses the given window size.
|
static short |
ATTR_WINDOWSIZE_480X640
Defines that the application uses the given window size.
|
static short |
ATTR_WINDOWSIZE_600X800
Defines that the application uses the given window size.
|
java.lang.Object |
bag
Bag that can be used to store anything that the user wants.
|
static java.lang.String |
mainClassName
Set this to be the main class name.
|
java.lang.String[] |
names
The names of the files.
|
int |
numberOfChunks
The number of chunks.
|
int[] |
offsets
Offsets to the compressed data chunks
|
int |
size
Stores the total size when a TCZ file is created.
|
static short |
TCZ_VERSION |
int[] |
uncompressedSizes
Sizes of the data chunks when they are uncompressed.
|
int |
version
Version of the tcz file.
|
Constructor and Description |
---|
TCZ(Stream fin)
Reads a TCZ file and fill the public members available in this class: version, attr,
baseOffset, offsets, uncompressedSizes, names, chunks, numberOfChunks.
|
TCZ(Vector vout,
java.lang.String outName,
short attr)
Create a TCZ file with the given vector of Entry(s).
|
Modifier and Type | Method and Description |
---|---|
int |
findNamePosition(java.lang.String name)
Finds the position of the given name in this tcz.
|
int |
getNextChunkSize()
Returns the size of the next available chunk
|
void |
readNextChunk(Stream out)
Fills the given stream with the next available chunk.
|
public static java.lang.String mainClassName
public static final short TCZ_VERSION
public static final short ATTR_HAS_MAINCLASS
public static final short ATTR_HAS_MAINWINDOW
public static final short ATTR_LIBRARY
public static final short ATTR_RESIZABLE_WINDOW
public static final short ATTR_WINDOWFONT_DEFAULT
public static final short ATTR_WINDOWSIZE_320X480
public static final short ATTR_WINDOWSIZE_480X640
public static final short ATTR_WINDOWSIZE_600X800
public java.lang.String[] names
public int attr
public int version
TCZ_VERSION
public int[] offsets
public int[] uncompressedSizes
public int numberOfChunks
public int size
public java.lang.Object bag
public TCZ(Vector vout, java.lang.String outName, short attr) throws IOException, ZipException
IOException
ZipException
public TCZ(Stream fin) throws IOException
IOException
public int getNextChunkSize()
public void readNextChunk(Stream out) throws IOException
IOException
public int findNamePosition(java.lang.String name)