usb.jphoto
Class FileData

java.lang.Object
  |
  +--usb.jphoto.Buffer
        |
        +--usb.jphoto.Container
              |
              +--usb.jphoto.Data
                    |
                    +--usb.jphoto.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(java.io.FileOutputStream 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

FileData

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

write

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

close

public void close()
           throws java.io.IOException
Closes the underlying file.


Associated source code is licenced under the GPL.
See http://jphoto.sourceforge.net
This documentation was derived from that source code on 2001-04-12.