org.w3c.rdfpic.core
Interface SubPHandler

All Known Implementing Classes:
FilePHandler, HttpPHandler

interface SubPHandler

A class exporting this interface must deal with a specific protocol. ProtocolHandler passes the appropriate commands on when necessary.


Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 java.lang.String contentType()
          Returns the MIME type of the loaded file.
 byte[] getReadBuf()
          After initialization, all data must be buffered.
 void write(byte[] data)
          Overwrites file with given data...
 

Method Detail

canRead

public boolean canRead()

canWrite

public boolean canWrite()

getReadBuf

public byte[] getReadBuf()
After initialization, all data must be buffered. This allows ProtocolHandler to take care of the buffering from now on.

write

public void write(byte[] data)
           throws PHException
Overwrites file with given data...

contentType

public java.lang.String contentType()
                             throws PHException
Returns the MIME type of the loaded file.