FileDocCategorySizeDatePackage
FixedField.javaAPI DocApache Poi 3.0.12670Mon Jan 01 12:39:42 GMT 2007org.apache.poi.util

FixedField

public interface FixedField
behavior of a field at a fixed location within a byte array
author
Marc Johnson (mjohnson at apache dot org

Fields Summary
Constructors Summary
Methods Summary
public voidreadFromBytes(byte[] data)
set the value from its offset into an array of bytes

param
data the byte array from which the value is to be read
exception
ArrayIndexOutOfBoundsException if the offset is out of the array's valid index range

public voidreadFromStream(java.io.InputStream stream)
set the value from an InputStream

param
stream the InputStream from which the value is to be read
exception
BufferUnderrunException if there is not enough data available from the InputStream
exception
IOException if an IOException is thrown from reading the InputStream

public java.lang.StringtoString()
return the value as a String

return
the value as a String

public voidwriteToBytes(byte[] data)
write the value out to an array of bytes at the appropriate offset

param
data the array of bytes to which the value is to be written
exception
ArrayIndexOutOfBoundsException if the offset is out of the array's valid index range