it.lilik.capturemjpeg
Class SonyURL

java.lang.Object
  extended by it.lilik.capturemjpeg.SonyURL

public class SonyURL
extends Object

This class can handle URL generation for a specific host (Sony camera).
Use the getURL() method to obtain a valid url string.

Author:
Alessio Caiazza, Cosimo Cecchi

Constructor Summary
SonyURL(String host)
          Creates a SonyURL for the specified host
host must be an IP or an hostname, without http:// or any trailing slash.
 
Method Summary
 String getURL()
          Transforms the SonyURL object in a correct URL string
 SonyURL setFPS(int speed)
          Sets the framerate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SonyURL

public SonyURL(String host)
Creates a SonyURL for the specified host
host must be an IP or an hostname, without http:// or any trailing slash.

Parameters:
host - the hostname or ip
Method Detail

getURL

public String getURL()
Transforms the SonyURL object in a correct URL string

Returns:
the URL in string form

setFPS

public SonyURL setFPS(int speed)
Sets the framerate.
This is encoded as speed parameter into the url.

Parameters:
speed - the framerate
Returns:
a reference to this


Copyright © 2008-09 Alessio Caiazza, Cosimo Cecchi All Rights Reserved.