safehome.device.netcamera
Class CameraPacket

java.lang.Object
  extended by safehome.device.netcamera.CameraPacket
All Implemented Interfaces:
Serializable

public class CameraPacket
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static int CONTROL_PAN_LEFT
           
static int CONTROL_PAN_RIGHT
           
static int CONTROL_SEND_IMAGE
           
static int CONTROL_ZOOM_IN
           
static int CONTROL_ZOOM_OUT
           
 
Constructor Summary
CameraPacket(int type)
           
CameraPacket(int type, BufferedImage img)
           
CameraPacket(int type, byte[] serializedImage)
           
 
Method Summary
 BufferedImage getBufferedImage()
           
 int getType()
           
 byte[] toBytes()
           
static CameraPacket toPacket(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_SEND_IMAGE

public static final int CONTROL_SEND_IMAGE
See Also:
Constant Field Values

CONTROL_PAN_LEFT

public static final int CONTROL_PAN_LEFT
See Also:
Constant Field Values

CONTROL_PAN_RIGHT

public static final int CONTROL_PAN_RIGHT
See Also:
Constant Field Values

CONTROL_ZOOM_IN

public static final int CONTROL_ZOOM_IN
See Also:
Constant Field Values

CONTROL_ZOOM_OUT

public static final int CONTROL_ZOOM_OUT
See Also:
Constant Field Values
Constructor Detail

CameraPacket

public CameraPacket(int type)

CameraPacket

public CameraPacket(int type,
                    byte[] serializedImage)

CameraPacket

public CameraPacket(int type,
                    BufferedImage img)
Method Detail

getType

public int getType()

getBufferedImage

public BufferedImage getBufferedImage()

toBytes

public byte[] toBytes()

toPacket

public static CameraPacket toPacket(byte[] data)