org.openrdf.http.object.behaviours
Class FileObjectImpl

java.lang.Object
  extended by org.openrdf.http.object.behaviours.FileObjectImpl
All Implemented Interfaces:
javax.tools.FileObject, VersionedObject, RDFObject
Direct Known Subclasses:
HTTPFileObjectSupport, LocalFileObjectSupport

public abstract class FileObjectImpl
extends Object
implements VersionedObject, RDFObject, javax.tools.FileObject

Commons methods used by both http:// and file:// objects.


Field Summary
 
Fields inherited from interface org.openrdf.repository.object.RDFObject
GET_CONNECTION, GET_RESOURCE
 
Constructor Summary
FileObjectImpl()
           
 
Method Summary
 boolean delete()
           
 CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 long getLastModified()
           
 String getName()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 Reader openReader(boolean ignoreEncodingErrors)
           
 Writer openWriter()
           
protected abstract  File toFile()
           
 URI 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 org.openrdf.repository.object.RDFObject
getObjectConnection, getResource
 

Constructor Detail

FileObjectImpl

public FileObjectImpl()
Method Detail

toUri

public URI toUri()
Specified by:
toUri in interface javax.tools.FileObject

getName

public String getName()
Specified by:
getName in interface javax.tools.FileObject

getLastModified

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

openInputStream

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

openReader

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

getCharContent

public CharSequence getCharContent(boolean ignoreEncodingErrors)
                            throws IOException
Specified by:
getCharContent in interface javax.tools.FileObject
Throws:
IOException

openOutputStream

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

openWriter

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

delete

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

toFile

protected abstract File toFile()


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