org.w3c.rdfpic.core
Class HttpPHandler
java.lang.Object
|
+--org.w3c.rdfpic.core.HttpPHandler
- class HttpPHandler
- extends java.lang.Object
- implements SubPHandler
HttpPHandler is an implementation of SubPHandler that deals with the HTTP 1.1 protocol.
Field Summary |
(package private) org.w3c.www.protocol.http.HttpManager |
manager
|
(package private) boolean |
readable
|
(package private) byte[] |
readBuf
|
(package private) java.net.URL |
url
|
(package private) boolean |
writable
|
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... |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
url
java.net.URL url
readBuf
byte[] readBuf
manager
org.w3c.www.protocol.http.HttpManager manager
readable
boolean readable
writable
boolean writable
HttpPHandler
public HttpPHandler(java.net.URL url)
throws PHException
canRead
public boolean canRead()
- Specified by:
- canRead in interface SubPHandler
canWrite
public boolean canWrite()
- Specified by:
- canWrite in interface SubPHandler
getReadBuf
public byte[] getReadBuf()
- Description copied from interface: SubPHandler
- After initialization, all data must be buffered. This allows ProtocolHandler to
take care of the buffering from now on.
- Specified by:
- getReadBuf in interface SubPHandler
write
public void write(byte[] data)
throws PHException
- Description copied from interface: SubPHandler
- Overwrites file with given data...
- Specified by:
- write in interface SubPHandler
contentType
public java.lang.String contentType()
- Description copied from interface: SubPHandler
- Returns the MIME type of the loaded file.
- Specified by:
- contentType in interface SubPHandler