com.charliemouse.cambozola.shared

Class CamStream

public class CamStream extends Thread

com/charliemouse/cambozola/shared/CamStream.java Copyright (C) Andy Wilcock, 2001. Available from http://www.charliemouse.com This file is part of the Cambozola package (c) Andy Wilcock, 2001. Available from http://www.charliemouse.com Cambozola is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Cambozola is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Cambozola; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Field Summary
static intCONNECT_STYLE_HTTP
static intCONNECT_STYLE_SOCKET
Constructor Summary
CamStream(URL strm, String app, URL docBase, int retryCount, int retryDelay, ExceptionReporter reporter, boolean debug)
Method Summary
voidaddImageChangeListener(ImageChangeListener cl)
voidfinalize()
ImagegetCurrent()
doublegetFPS()
intgetIndex()
byte[]getRawImage()
URLgetStreamURL()
StringgetType()
voidremoveImageChangeListener(ImageChangeListener cl)
voidrun()
voidunhook()

Field Detail

CONNECT_STYLE_HTTP

public static final int CONNECT_STYLE_HTTP

CONNECT_STYLE_SOCKET

public static final int CONNECT_STYLE_SOCKET

Constructor Detail

CamStream

public CamStream(URL strm, String app, URL docBase, int retryCount, int retryDelay, ExceptionReporter reporter, boolean debug)

Method Detail

addImageChangeListener

public void addImageChangeListener(ImageChangeListener cl)

finalize

public void finalize()

getCurrent

public Image getCurrent()

getFPS

public double getFPS()

getIndex

public int getIndex()

getRawImage

public final byte[] getRawImage()

getStreamURL

public URL getStreamURL()

getType

public String getType()

removeImageChangeListener

public void removeImageChangeListener(ImageChangeListener cl)

run

public void run()

unhook

public void unhook()