public final class Theta
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
Theta() |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(ThetaEventListener listener)
Add an event listener.
|
void |
close() |
void |
deleteObject(long objectHandle)
Deletes the object specified by the ObjectHandle.
|
long |
getAudioVolume()
Acquires or set the volume for the shutter sound.
|
int |
getAutoPowerOffDelay()
Acquires the time in minutes to start the auto power off.
|
BatteryLevel |
getBatteryLevel()
Acquires the battery charge level.
|
CaptureStatus |
getCaptureStatus()
Acquires the camera shooting execution status.
|
ChannelNumber |
getChannelNumber()
Acquires the wireless LAN channel number.
|
java.util.Date |
getDateTime()
Acquires the date and time.
|
DeviceInfo |
getDeviceInfo()
Returns information and capabilities about the Responder device.
|
ErrorInfo |
getErrorInfo()
Acquires the error information.
|
int |
getExposureBiasCompensation()
Acquires or set the exposure bias compensation value.
|
ISOSpeed |
getExposureIndex()
Acquires the ISO sensitivity.
|
java.lang.String |
getGPSInfo()
Acquires the GPS information.
|
long |
getNumObjects()
Returns the total number of objects present in the all storage.
|
void |
getObject(long objectHandle,
java.io.OutputStream dst)
Retrieves the object's data and writes to the dst.
|
java.util.List<java.lang.Long> |
getObjectHandles()
Returns a list of the object handles.
|
ObjectInfo |
getObjectInfo(long objectHandle)
Returns a ObjectInfo for the object specified by the objectHandle.
|
int |
getRecordingTime()
Acquires the video recording time in seconds.
|
int |
getRemainingRecordingTime()
Acquires the amount of time remaining in seconds for recording video.
|
void |
getResizedImageObject(long objectHandle,
java.io.OutputStream dst)
Retrieves the object's resized data and writes to the dst.
|
ShutterSpeed |
getShutterSpeed()
Acquires the shutter speed.
|
int |
getSleepDelay()
Acquires the time in seconds to start sleep.
|
StillCaptureMode |
getStillCaptureMode()
Acquires the still image shooting method.¥
|
java.util.List<java.lang.Long> |
getStorageIDs()
Returns a list of the currently valid StorageIDs.
|
StorageInfo |
getStorageInfo(long storageID)
Returns a StorageInfo of the storage area indicated in the storageID.
|
void |
getThumb(long objectHandle,
java.io.OutputStream dst)
Retrieves the object's thumbnail data and writes to the dst.
|
long |
getTimelapseInterval()
Acquires the shooting interval in msec for interval shooting.
|
int |
getTimelapseNumber()
Acquires the upper limit value for interval shooting.
|
WhiteBalance |
getWhiteBalance()
Acquires the white balance.
|
void |
initiateCapture()
Starts shooting.
|
long |
initiateOpenCapture()
Starts the video recording or the interval shooting.
|
boolean |
removeListener(ThetaEventListener listener)
Remove an event listener.
|
void |
setAudioVolume(long audioVolume)
Set the volume for the shutter sound.
|
void |
setAutoPowerOffDelay(int autoPowerOffDelay)
Sets the time in minutes to start the auto power off.
|
void |
setChannelNumber(ChannelNumber channelNumber)
Sets the wireless LAN channel number.
|
void |
setDateTime(java.util.Date dateTime)
Sets the date and time.
|
void |
setExposureBiasCompensation(int exposureBiasCompensation)
Sets the exposure bias compensation value.
|
void |
setExposureIndex(ISOSpeed isoSpeed)
Sets the ISO sensitivity.
|
void |
setGPSInfo(java.lang.String gpsInfo)
Sets the GPS information.
|
void |
setShutterSpeed(ShutterSpeed shutterSpeed)
Sets the shutter speed.
|
void |
setSleepDelay(int sleepDelay)
Sets the time in seconds to start sleep.
|
void |
setStillCaptureMode(StillCaptureMode stillCaptureMode)
Sets the still image shooting method.
|
void |
setTimelapseInterval(long timelapseInterval)
Sets the shooting interval in msec for interval shooting.
|
void |
setTimelapseNumber(int timelapseNumber)
Sets the upper limit value for interval shooting.
|
void |
setWhiteBalance(WhiteBalance whiteBalance)
Sets the white balance.
|
void |
terminateOpenCapture()
Exits the all continuous shooting.
|
void |
terminateOpenCapture(long transactionID)
Exits a continuous shooting specified by TransactionID.
|
void |
turnOffWLAN()
Turns off the Wireless LAN.
|
public DeviceInfo getDeviceInfo() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public java.util.List<java.lang.Long> getStorageIDs() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public StorageInfo getStorageInfo(long storageID) throws java.io.IOException, PtpException
storageID
- The StorageID of the storage area to acquire the StorageInfo.java.io.IOException
PtpException
public long getNumObjects() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public java.util.List<java.lang.Long> getObjectHandles() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public ObjectInfo getObjectInfo(long objectHandle) throws java.io.IOException, PtpException
objectHandle
- The ObjectHandle of the object to acquire the ObjectInfo.java.io.IOException
PtpException
public void getObject(long objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
objectHandle
- The ObjectHandle of the object to acquire the data.dst
- The destination for the object's data.java.io.IOException
PtpException
public void getThumb(long objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
objectHandle
- The ObjectHandle of the object to acquire the thumbnail data.dst
- The destination for the object's thumbnail data.java.io.IOException
PtpException
public void deleteObject(long objectHandle) throws java.io.IOException, PtpException
objectHandle
- The ObjectHandle of the object to delete.java.io.IOException
PtpException
public void initiateCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void terminateOpenCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void terminateOpenCapture(long transactionID) throws java.io.IOException, PtpException
transactionID
- The TransactionID returned by Theta#initiateOpenCapture().java.io.IOException
PtpException
initiateOpenCapture()
public long initiateOpenCapture() throws java.io.IOException, PtpException
java.io.IOException
PtpException
terminateOpenCapture(long)
public void getResizedImageObject(long objectHandle, java.io.OutputStream dst) throws java.io.IOException, PtpException
objectHandle
- The ObjectHandle of the object to acquire the resized data.dst
- The destination for the object's resized data.java.io.IOException
PtpException
public void turnOffWLAN() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public BatteryLevel getBatteryLevel() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public WhiteBalance getWhiteBalance() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setWhiteBalance(WhiteBalance whiteBalance) throws java.io.IOException, PtpException
java.io.IOException
PtpException
public ISOSpeed getExposureIndex() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setExposureIndex(ISOSpeed isoSpeed) throws java.io.IOException, PtpException
isoSpeed
- An ISO speedjava.io.IOException
PtpException
public int getExposureBiasCompensation() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setExposureBiasCompensation(int exposureBiasCompensation) throws java.io.IOException, PtpException
exposureBiasCompensation
- An exposure bias compensation value to set.java.io.IOException
PtpException
public java.util.Date getDateTime() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setDateTime(java.util.Date dateTime) throws java.io.IOException, PtpException
dateTime
- A date and time to set.java.io.IOException
PtpException
public StillCaptureMode getStillCaptureMode() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setStillCaptureMode(StillCaptureMode stillCaptureMode) throws java.io.IOException, PtpException
stillCaptureMode
- A still capture mode to set.java.io.IOException
PtpException
public int getTimelapseNumber() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setTimelapseNumber(int timelapseNumber) throws java.io.IOException, PtpException
timelapseNumber
- The upper limit value for interval shooting. The valid range is in 0 or 2-65535. The 0 means unlimited.java.io.IOException
PtpException
public long getTimelapseInterval() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setTimelapseInterval(long timelapseInterval) throws java.io.IOException, PtpException
timelapseInterval
- The shooting interval in msec for interval shooting. The valid range is in 5000-3600000.java.io.IOException
PtpException
public long getAudioVolume() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setAudioVolume(long audioVolume) throws java.io.IOException, PtpException
audioVolume
- The volume for the shutter sound. The valid range is in 0-100.java.io.IOException
PtpException
public ErrorInfo getErrorInfo() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public ShutterSpeed getShutterSpeed() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setShutterSpeed(ShutterSpeed shutterSpeed) throws java.io.IOException, PtpException
shutterSpeed
- The shutter speed to set.java.io.IOException
PtpException
public java.lang.String getGPSInfo() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setGPSInfo(java.lang.String gpsInfo) throws java.io.IOException, PtpException
gpsInfo
- The GPS information to set.java.io.IOException
PtpException
public int getAutoPowerOffDelay() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setAutoPowerOffDelay(int autoPowerOffDelay) throws java.io.IOException, PtpException
autoPowerOffDelay
- The time in minutes to start the auto power off. The valid range is in 0-30. The 0 disables the auto power off.java.io.IOException
PtpException
public int getSleepDelay() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setSleepDelay(int sleepDelay) throws java.io.IOException, PtpException
sleepDelay
- The time in seconds to start sleep. The valid range is in 0-1800. Does not switch to sleep mode with 0.java.io.IOException
PtpException
public ChannelNumber getChannelNumber() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public void setChannelNumber(ChannelNumber channelNumber) throws java.io.IOException
channelNumber
- The wireless LAN channel number to set.java.io.IOException
public CaptureStatus getCaptureStatus() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public int getRecordingTime() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public int getRemainingRecordingTime() throws java.io.IOException, PtpException
java.io.IOException
PtpException
public boolean addListener(ThetaEventListener listener)
listener
- An event listener to add.public boolean removeListener(ThetaEventListener listener)
listener
- An event listener to add.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException