kz.gamma.vista
Class VistaFile

java.lang.Object
  extended by kz.gamma.vista.VistaFile

public class VistaFile
extends java.lang.Object

Author:
Sergey Moisseyev

Field Summary
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 Summary
VistaFile(byte[] file, boolean isSign)
           
VistaFile(byte[] blob, int curr)
           
VistaFile(java.lang.String fileName, byte[] file, int packSize, int unPackSize, boolean isArch)
           
 
Method Summary
private  byte[] calcFileCRC(byte[] data)
           
 boolean checkCRC(byte[] data)
           
 int getBlobSize()
           
 byte[] getEncoded()
           
 byte[] getFile()
           
 byte[] getFileCRC()
           
 java.lang.String getFileName()
           
 boolean isArchFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.