org.jmythapi.protocol.response
Interface ITransferable<E extends Enum<E>>

All Superinterfaces:
Cloneable, Closeable, IPropertyAware<E>, IVersionable
All Known Subinterfaces:
IFileTransfer, IRingBuffer
All Known Implementing Classes:
FileTransfer, RingBuffer

public interface ITransferable<E extends Enum<E>>
extends Closeable, IVersionable, IPropertyAware<E>


Nested Class Summary
static class ITransferable.Seek
          The properties to seek within a file during IFileTransfer.
 
Method Summary
 void close()
           
 boolean done()
           
 boolean isOpen()
           
 int readBlock(byte[] buffer, int requestedSize)
           
 long seek(long currentPos, long newPos, ITransferable.Seek whence)
           
 
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

readBlock

int readBlock(byte[] buffer,
              int requestedSize)
              throws IOException
Throws:
IOException

seek

long seek(long currentPos,
          long newPos,
          ITransferable.Seek whence)
          throws IOException
Throws:
IOException

isOpen

boolean isOpen()
               throws IOException
Throws:
IOException

done

boolean done()
             throws IOException
Throws:
IOException

close

void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.