Bartosz Firyn (SarXos)

com.github.sarxos.webcam.ds.ipcam
Class IpCamDevice

java.lang.Object
  extended by com.github.sarxos.webcam.ds.ipcam.IpCamDevice
All Implemented Interfaces:
com.github.sarxos.webcam.WebcamDevice
Direct Known Subclasses:
B7210, F3201, IPRobocam641, X104S

public class IpCamDevice
extends Object
implements com.github.sarxos.webcam.WebcamDevice

IP camera device.

Author:
Bartosz Firyn (SarXos)

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.github.sarxos.webcam.WebcamDevice
com.github.sarxos.webcam.WebcamDevice.BufferAccess, com.github.sarxos.webcam.WebcamDevice.FPSSource
 
Constructor Summary
IpCamDevice(String name, URL url, IpCamMode mode)
           
IpCamDevice(String name, URL url, IpCamMode mode, IpCamAuth auth)
           
 
Method Summary
 void close()
           
 void dispose()
           
 IpCamAuth getAuth()
           
 BufferedImage getImage()
           
 IpCamMode getMode()
           
 String getName()
           
 Dimension getResolution()
           
 Dimension[] getResolutions()
           
 URL getURL()
           
 boolean isOpen()
           
 void open()
           
 void resetAuth()
           
 void setAuth(IpCamAuth auth)
           
 void setFailOnError(boolean failOnError)
           
 void setResolution(Dimension size)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpCamDevice

public IpCamDevice(String name,
                   URL url,
                   IpCamMode mode)

IpCamDevice

public IpCamDevice(String name,
                   URL url,
                   IpCamMode mode,
                   IpCamAuth auth)
Method Detail

getName

public String getName()
Specified by:
getName in interface com.github.sarxos.webcam.WebcamDevice

getResolutions

public Dimension[] getResolutions()
Specified by:
getResolutions in interface com.github.sarxos.webcam.WebcamDevice

getResolution

public Dimension getResolution()
Specified by:
getResolution in interface com.github.sarxos.webcam.WebcamDevice

setResolution

public void setResolution(Dimension size)
Specified by:
setResolution in interface com.github.sarxos.webcam.WebcamDevice

getImage

public BufferedImage getImage()
Specified by:
getImage in interface com.github.sarxos.webcam.WebcamDevice

open

public void open()
Specified by:
open in interface com.github.sarxos.webcam.WebcamDevice

close

public void close()
Specified by:
close in interface com.github.sarxos.webcam.WebcamDevice

getURL

public URL getURL()

getMode

public IpCamMode getMode()

getAuth

public IpCamAuth getAuth()

setAuth

public void setAuth(IpCamAuth auth)

resetAuth

public void resetAuth()

setFailOnError

public void setFailOnError(boolean failOnError)

dispose

public void dispose()
Specified by:
dispose in interface com.github.sarxos.webcam.WebcamDevice

isOpen

public boolean isOpen()
Specified by:
isOpen in interface com.github.sarxos.webcam.WebcamDevice

Bartosz Firyn (SarXos)

Copyright © 2012-2013 Bartosz Firyn (SarXos). All Rights Reserved.