kz.gamma.vista
Class VistaFile
java.lang.Object
kz.gamma.vista.VistaFile
public class VistaFile
- extends java.lang.Object
- Author:
- Sergey Moisseyev
|
Constructor Summary |
VistaFile(byte[] file,
boolean isSign)
|
VistaFile(byte[] blob,
int curr)
|
VistaFile(java.lang.String fileName,
byte[] file,
int packSize,
int unPackSize,
boolean isArch)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
headCRC
private int headCRC
type
private byte type
method
private byte method
nameSize
private short nameSize
nameCRC
private int nameCRC
attributes
private int attributes
time
private int[] time
packSize
private int[] packSize
unPackSize
private int[] unPackSize
fileCRC
private byte[] fileCRC
reserv
private int reserv
fileName
private java.lang.String fileName
file
private byte[] file
blob
private byte[] blob
blobSize
private int blobSize
VistaFile
public VistaFile(byte[] blob,
int curr)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
VistaFile
public VistaFile(java.lang.String fileName,
byte[] file,
int packSize,
int unPackSize,
boolean isArch)
VistaFile
public VistaFile(byte[] file,
boolean isSign)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getBlobSize
public int getBlobSize()
getFile
public byte[] getFile()
getFileName
public java.lang.String getFileName()
calcFileCRC
private byte[] calcFileCRC(byte[] data)
checkCRC
public boolean checkCRC(byte[] data)
isArchFile
public boolean isArchFile()
getEncoded
public byte[] getEncoded()
getFileCRC
public byte[] getFileCRC()
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.