usb.devices
Class Kodak

java.lang.Object
  |
  +--usb.devices.Kodak

public class Kodak
extends java.lang.Object

Simple wrapper for Kodak DC 240, 280, 3400, DC-5000 cameras. These cameras support a common protocol family. A full camera driver would be substantial; it might become part of a project such as jPhoto.


Constructor Summary
Kodak(Device dev)
          Wraps access to the specified camera.
 
Method Summary
 void close()
           
 void finalize()
           
 java.lang.String getBatteryStatus()
          returns good, weak, or empty
 byte[] getCameraStatus()
          Updates the local copy of the camera status table, and returns a copy of it.
 java.lang.String getCameraType()
          returns string naming camera type, such as DC-240 or DC-280
 java.lang.String getDriverMode()
          Returns a string identifying the driver mode (kernel, user).
 int getNumPicturesInCard()
           
 boolean isPowerConnected()
           
 void printSomeStatus(int indent)
           
 void setTime(long time)
          Set's the camera's clock to match the local time.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Kodak

public Kodak(Device dev)
      throws java.io.IOException
Wraps access to the specified camera.
Method Detail

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

close

public void close()
           throws java.io.IOException

getCameraStatus

public byte[] getCameraStatus()
                       throws java.io.IOException
Updates the local copy of the camera status table, and returns a copy of it. The format of this data is in section 3.1 of the DC-280 specification; that is a superset of previous models including the dc240. Note that this table snapshots the camera's notion of the current time.

getCameraType

public java.lang.String getCameraType()
returns string naming camera type, such as DC-240 or DC-280

getBatteryStatus

public java.lang.String getBatteryStatus()
returns good, weak, or empty

isPowerConnected

public boolean isPowerConnected()

getNumPicturesInCard

public int getNumPicturesInCard()

setTime

public void setTime(long time)
             throws java.io.IOException
Set's the camera's clock to match the local time.

getDriverMode

public java.lang.String getDriverMode()
Returns a string identifying the driver mode (kernel, user).

printSomeStatus

public void printSomeStatus(int indent)
                     throws java.io.IOException


Associated source code is licenced under the LGPL.
See http://jusb.sourceforge.net
This documentation was derived from that source code on 24-Jul-2002.