org.openrdf.http.object.behaviours
Class HTTPFileObjectSupport

java.lang.Object
  extended by org.openrdf.http.object.behaviours.FileObjectImpl
      extended by org.openrdf.http.object.behaviours.HTTPFileObjectSupport
All Implemented Interfaces:
javax.tools.FileObject, HTTPFileObject, ProxyObject, VersionedObject, RDFObject

public abstract class HTTPFileObjectSupport
extends FileObjectImpl
implements HTTPFileObject, ProxyObject

Implements the FileObject interface for HTTP Objects that are local or remote.


Field Summary
 
Fields inherited from interface org.openrdf.repository.object.RDFObject
GET_CONNECTION, GET_RESOURCE
 
Constructor Summary
HTTPFileObjectSupport()
           
 
Method Summary
 boolean delete()
           
 long getLastModified()
           
 void initLocalFileObject(File file, boolean readOnly)
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 Reader openReader(boolean ignoreEncodingErrors)
           
 Writer openWriter()
           
protected  File toFile()
           
 
Methods inherited from class org.openrdf.http.object.behaviours.FileObjectImpl
getCharContent, getName, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.http.object.traits.VersionedObject
getRevision, revision, revisionTag, setRevision, touchRevision, variantTag
 
Methods inherited from interface javax.tools.FileObject
getCharContent, getName, toUri
 
Methods inherited from interface org.openrdf.http.object.traits.ProxyObject
getProxyObjectInetAddress, invokeRemote
 
Methods inherited from interface org.openrdf.repository.object.RDFObject
getObjectConnection, getResource
 

Constructor Detail

HTTPFileObjectSupport

public HTTPFileObjectSupport()
Method Detail

initLocalFileObject

public void initLocalFileObject(File file,
                                boolean readOnly)
Specified by:
initLocalFileObject in interface ProxyObject

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface javax.tools.FileObject
Overrides:
getLastModified in class FileObjectImpl

openInputStream

public InputStream openInputStream()
                            throws IOException
Specified by:
openInputStream in interface javax.tools.FileObject
Overrides:
openInputStream in class FileObjectImpl
Throws:
IOException

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface javax.tools.FileObject
Overrides:
openOutputStream in class FileObjectImpl
Throws:
IOException

openReader

public Reader openReader(boolean ignoreEncodingErrors)
                  throws IOException
Specified by:
openReader in interface javax.tools.FileObject
Overrides:
openReader in class FileObjectImpl
Throws:
IOException

openWriter

public Writer openWriter()
                  throws IOException
Specified by:
openWriter in interface javax.tools.FileObject
Overrides:
openWriter in class FileObjectImpl
Throws:
IOException

delete

public boolean delete()
Specified by:
delete in interface javax.tools.FileObject
Overrides:
delete in class FileObjectImpl

toFile

protected File toFile()
Specified by:
toFile in class FileObjectImpl


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.