public class JavaNoOpFileObject extends JarFileObject
JarFileObject
implementation that represents a FileObject
that has
no operations and does not write the contents to any form of output.JavaFileObject.Kind
kind, pathInJar, uri
Constructor and Description |
---|
JavaNoOpFileObject(URI uri,
String pathInJar,
JavaFileObject.Kind kind) |
Modifier and Type | Method and Description |
---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
void |
writeToJar(JarBuilder jarBuilder,
String owner) |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, toString, toUri
public JavaNoOpFileObject(URI uri, String pathInJar, JavaFileObject.Kind kind)
public InputStream openInputStream()
public OutputStream openOutputStream()
public Reader openReader(boolean ignoreEncodingErrors)
public CharSequence getCharContent(boolean ignoreEncodingErrors)
public Writer openWriter()
public void writeToJar(JarBuilder jarBuilder, String owner)
writeToJar
in class JarFileObject