org.eclipse.jdt.internal.compiler.apt.util
Class ArchiveFileObject
java.lang.Object
org.eclipse.jdt.internal.compiler.apt.util.ArchiveFileObject
- All Implemented Interfaces:
- FileObject, JavaFileObject
public class ArchiveFileObject
- extends Object
- implements JavaFileObject
Implementation of a Java file object that corresponds to an entry in a zip/jar file
ArchiveFileObject
public ArchiveFileObject(File file,
ZipFile zipFile,
String entryName,
Charset charset)
getAccessLevel
public Modifier getAccessLevel()
- Specified by:
getAccessLevel
in interface JavaFileObject
getKind
public JavaFileObject.Kind getKind()
- Specified by:
getKind
in interface JavaFileObject
getNestingKind
public NestingKind getNestingKind()
- Specified by:
getNestingKind
in interface JavaFileObject
isNameCompatible
public boolean isNameCompatible(String simpleName,
JavaFileObject.Kind kind)
- Specified by:
isNameCompatible
in interface JavaFileObject
delete
public boolean delete()
- Specified by:
delete
in interface FileObject
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
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 ignoreEncodingErrors)
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.