de.wenzlaff.hex.tabelle
Class HexFile

java.lang.Object
  extended by java.io.RandomAccessFile
      extended by de.wenzlaff.hex.tabelle.HexFile
All Implemented Interfaces:
Hexable, java.io.Closeable, java.io.DataInput, java.io.DataOutput

public class HexFile
extends java.io.RandomAccessFile
implements Hexable

Since:
01.02.2003
Version:
1.0
Author:
Thomas Wenzlaff (gesundheitskarte@wenzlaff.de)
See Also:
www.wenzlaff.de

Constructor Summary
HexFile(java.io.File file)
          Konstruktor HexFile
HexFile(java.lang.String filename)
          Konstruktor HexFile
 
Method Summary
 byte getByte(int row, int col)
          Method getByte.
 int getColumnCount()
          Method getColumnCount.
 int getLastRowSize()
          Method getLastRowSize.
 byte[] getRow(int row)
          Method getRow.
 int getRowCount()
          Method getRowCount.
 void setByte(int row, int col, byte value)
          Method setByte.
 
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexFile

public HexFile(java.lang.String filename)
        throws java.io.IOException
Konstruktor HexFile

Parameters:
filename -
Throws:
java.io.IOException

HexFile

public HexFile(java.io.File file)
        throws java.io.IOException
Konstruktor HexFile

Parameters:
file -
Throws:
java.io.IOException
Method Detail

getRowCount

public int getRowCount()
Description copied from interface: Hexable
Method getRowCount.

Specified by:
getRowCount in interface Hexable
Returns:
int
See Also:
Hexable.getRowCount()

getColumnCount

public int getColumnCount()
Description copied from interface: Hexable
Method getColumnCount.

Specified by:
getColumnCount in interface Hexable
Returns:
int
See Also:
Hexable.getColumnCount()

getLastRowSize

public int getLastRowSize()
Description copied from interface: Hexable
Method getLastRowSize.

Specified by:
getLastRowSize in interface Hexable
Returns:
int
See Also:
Hexable.getLastRowSize()

getByte

public byte getByte(int row,
                    int col)
Description copied from interface: Hexable
Method getByte.

Specified by:
getByte in interface Hexable
Returns:
byte
See Also:
Hexable.getByte(int, int)

setByte

public void setByte(int row,
                    int col,
                    byte value)
Description copied from interface: Hexable
Method setByte.

Specified by:
setByte in interface Hexable
See Also:
Hexable.setByte(int, int, byte)

getRow

public byte[] getRow(int row)
Description copied from interface: Hexable
Method getRow.

Specified by:
getRow in interface Hexable
Returns:
byte[]
See Also:
Hexable.getRow(int)



twhexedit 1.1.0 - © 2006-2008 by Thomas Wenzlaff

Anleitung und neueste Version auf www.wenzlaff.de

Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2008 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.