|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRingBuffer
An interface to control a MythTV ringbuffer.
This interface represents the result of a IRecorder.annotateRingBuffer() request.
This interface is property-aware. See the properties-list for all properties of this interface.
| Nested Class Summary | |
|---|---|
static class |
IRingBuffer.Props
Deprecated. The properties of an IRingBuffer response. |
| Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.ITransferable |
|---|
ITransferable.Seek |
| Method Summary | |
|---|---|
void |
close()
Deprecated. Closes the ringbuffer connection. |
boolean |
done()
Deprecated. 20 |
long |
getAmount()
Deprecated. |
long |
getFreeSpace(long totalReadPos)
Deprecated. 20 |
long |
getSize()
Deprecated. |
String |
getUrl()
Deprecated. |
boolean |
isOpen()
Deprecated. Queries whether the ring buffer connection is open. |
int |
readBlock(byte[] buffer,
int requestedSize)
Deprecated. 20 |
long |
seek(long currentPos,
long newPos,
ITransferable.Seek whence)
Deprecated. 20 |
| Methods inherited from interface org.jmythapi.IVersionable |
|---|
getVersionNr |
| Methods inherited from interface org.jmythapi.IPropertyAware |
|---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
| Method Detail |
|---|
String getUrl()
long getSize()
long getAmount()
long seek(long currentPos,
long newPos,
ITransferable.Seek whence)
throws IOException
seek in interface ITransferable<IRingBuffer.Props>currentPos - the current positionwhence - the seek modenewPos - the new position
IOException - on communication errorsQUERY_RECORDER_SEEK_RINGBUF| Version | Date | Additional Version Info | |
|---|---|---|---|
| Added | 00 | ||
| Removed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
int readBlock(byte[] buffer,
int requestedSize)
throws IOException
readBlock in interface ITransferable<IRingBuffer.Props>buffer - the byte array that should be filled with datarequestedSize - the amount of bytes to read.
IOException - on communication errorsQUERY_RECORDER_REQUEST_BLOCK_RINGBUF| Version | Date | Additional Version Info | |
|---|---|---|---|
| Added | 00 | ||
| Removed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
long getFreeSpace(long totalReadPos)
throws IOException
This function returns the number of bytes beyond "totalreadpos" it is safe to read.
totalReadPos - amount of already read bytes
-1 if "totalReadPos" is past the "safe read" position
of the file.
IOExceptionQUERY_RECORDER_GET_FREE_SPACE| Version | Date | Additional Version Info | |
|---|---|---|---|
| Added | 00 | ||
| Removed | 20 | 2005-11-05 | Changelog, SVN-Rev.: 7739 |
boolean done()
throws IOException
done in interface ITransferable<IRingBuffer.Props>
void close()
throws IOException
close in interface Closeableclose in interface ITransferable<IRingBuffer.Props>IOException - on communication errors
boolean isOpen()
throws IOException
isOpen in interface ITransferable<IRingBuffer.Props>true if the socket is open.
IOException - on communication errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||