com.ochafik.lang.compiler
Class URLFileObject

java.lang.Object
  extended by com.ochafik.lang.compiler.URLFileObject
All Implemented Interfaces:
FileObject

public class URLFileObject
extends Object
implements FileObject


Constructor Summary
URLFileObject(URL url)
           
 
Method Summary
 boolean delete()
           
 CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 long getLastModified()
           
 String getName()
           
 String getPath()
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 Reader openReader(boolean arg0)
           
 Writer openWriter()
           
 URI toUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLFileObject

public URLFileObject(URL url)
Method Detail

getPath

public String getPath()

delete

public boolean delete()
Specified by:
delete in interface FileObject

getCharContent

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

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface FileObject

getName

public String getName()
Specified by:
getName in interface FileObject

openInputStream

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

openOutputStream

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

openReader

public Reader openReader(boolean arg0)
                  throws IOException
Specified by:
openReader in interface FileObject
Throws:
IOException

openWriter

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

toUri

public URI toUri()
Specified by:
toUri in interface FileObject


Copyright © 2009. All Rights Reserved.