org.crsh.lang.impl.java
Class NodeJavaFileObject
java.lang.Object
org.crsh.lang.impl.java.NodeJavaFileObject
- All Implemented Interfaces:
- FileObject, JavaFileObject
class NodeJavaFileObject
- extends Object
- implements JavaFileObject
- Author:
- Julien Viet
binaryName
final String binaryName
- .
uri
private final URI uri
- .
name
private final String name
- .
lastModified
private final long lastModified
- .
stream
private final InputStreamFactory stream
- .
NodeJavaFileObject
public NodeJavaFileObject(String binaryName,
URI uri,
InputStreamFactory stream,
long lastModified)
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.