org.crsh.lang.impl.java
Class NodeJavaFileObject

java.lang.Object
  extended by org.crsh.lang.impl.java.NodeJavaFileObject
All Implemented Interfaces:
FileObject, JavaFileObject

 class NodeJavaFileObject
extends Object
implements JavaFileObject

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
(package private)  String binaryName
          .
private  long lastModified
          .
private  String name
          .
private  InputStreamFactory stream
          .
private  URI uri
          .
 
Constructor Summary
NodeJavaFileObject(String binaryName, URI uri, InputStreamFactory stream, long lastModified)
           
 
Method Summary
 boolean delete()
           
 Modifier getAccessLevel()
           
 CharSequence getCharContent(boolean ignoreEncodingErrors)
           
 JavaFileObject.Kind getKind()
           
 long getLastModified()
           
 String getName()
           
 NestingKind getNestingKind()
           
 boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
           
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 Reader openReader(boolean ignoreEncodingErrors)
           
 Writer openWriter()
           
 String toString()
           
 URI toUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

binaryName

final String binaryName
.


uri

private final URI uri
.


name

private final String name
.


lastModified

private final long lastModified
.


stream

private final InputStreamFactory stream
.

Constructor Detail

NodeJavaFileObject

public NodeJavaFileObject(String binaryName,
                          URI uri,
                          InputStreamFactory stream,
                          long lastModified)
Method Detail

toUri

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

getName

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

getLastModified

public long getLastModified()
Specified by:
getLastModified 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 ignoreEncodingErrors)
                  throws IOException
Specified by:
openReader in interface FileObject
Throws:
IOException

getCharContent

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

openWriter

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

delete

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

getKind

public JavaFileObject.Kind getKind()
Specified by:
getKind in interface JavaFileObject

isNameCompatible

public boolean isNameCompatible(String simpleName,
                                JavaFileObject.Kind kind)
Specified by:
isNameCompatible in interface JavaFileObject

getNestingKind

public NestingKind getNestingKind()
Specified by:
getNestingKind in interface JavaFileObject

getAccessLevel

public Modifier getAccessLevel()
Specified by:
getAccessLevel in interface JavaFileObject

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.