public class VistaFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
attributes |
private byte[] |
blob |
private int |
blobSize |
private byte[] |
file |
private byte[] |
fileCRC |
private java.lang.String |
fileName |
private int |
headCRC |
private byte |
method |
private int |
nameCRC |
private short |
nameSize |
private int[] |
packSize |
private int |
reserv |
private int[] |
time |
private byte |
type |
private int[] |
unPackSize |
Constructor and Description |
---|
VistaFile(byte[] file,
boolean isSign) |
VistaFile(byte[] blob,
int curr) |
VistaFile(java.lang.String fileName,
byte[] file,
int packSize,
int unPackSize,
boolean isArch) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
calcFileCRC(byte[] data) |
boolean |
checkCRC(byte[] data) |
int |
getBlobSize() |
byte[] |
getEncoded() |
byte[] |
getFile() |
byte[] |
getFileCRC() |
java.lang.String |
getFileName() |
boolean |
isArchFile() |
private int headCRC
private byte type
private byte method
private short nameSize
private int nameCRC
private int attributes
private int[] time
private int[] packSize
private int[] unPackSize
private byte[] fileCRC
private int reserv
private java.lang.String fileName
private byte[] file
private byte[] blob
private int blobSize
public VistaFile(byte[] blob, int curr) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public VistaFile(java.lang.String fileName, byte[] file, int packSize, int unPackSize, boolean isArch)
public VistaFile(byte[] file, boolean isSign) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public int getBlobSize()
public byte[] getFile()
public java.lang.String getFileName()
private byte[] calcFileCRC(byte[] data)
public boolean checkCRC(byte[] data)
public boolean isArchFile()
public byte[] getEncoded()
public byte[] getFileCRC()
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.