org.eclipse.jdt.internal.compiler.apt.util
Class ArchiveFileObject

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Constructor Summary
ArchiveFileObject(File file, ZipFile zipFile, String entryName, Charset charset)
           
 
Method Summary
 boolean delete()
           
 boolean equals(Object o)
           
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArchiveFileObject

public ArchiveFileObject(File file,
                         ZipFile zipFile,
                         String entryName,
                         Charset charset)
Method Detail

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.