Class FileData


public class FileData
extends Data

Used with fillObject, this writes objects to files using a relatively small amount of in-memory buffering. That reduces system resource requirements for working with large files such as uncompressed TIF images supported by higher end imaging devices, and provides a more even system I/O load.

See Also:
BaselineInitiator.fillObject(int, usb.jphoto.Data)

Constructor Summary
FileData( o, NameFactory f)
          Constructs a data object which fills the given underlying file.
Method Summary
 void close()
          Closes the underlying file.
 void write(byte[] buf, int off, int len)
          Appends object data to the underlying file.
Methods inherited from class usb.jphoto.Data
getCodeName, toString
Methods inherited from class usb.jphoto.Container
getBlockType, getBlockTypeName, getCode, getCodeString, getCodeString, getCodeType, getLength, getXID
Methods inherited from class usb.jphoto.Buffer
getS16, getS32, getS64, getS8, getString, getU16, getU8, nextS16, nextS16Array, nextS32, nextS32Array, nextS64, nextS64Array, nextS8, nextS8Array, nextString, nextU16, nextU16Array, nextU8, nextU8Array, put16, put32, put64, put8, putString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public FileData( o,
                NameFactory f)
Constructs a data object which fills the given underlying file.
Method Detail


public void write(byte[] buf,
                  int off,
                  int len)
Appends object data to the underlying file.


public void close()
Closes the underlying file.

Associated source code is licenced under the GPL.
This documentation was derived from that source code on 2001-04-12.