|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.file.BaseFileObject
com.sun.tools.javac.file.ZipArchive.ZipFileObject
public static class ZipArchive.ZipFileObject
A subclass of JavaFileObject representing zip entries.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.tools.JavaFileObject |
|---|
JavaFileObject.Kind |
| Field Summary | |
|---|---|
(package private) java.util.zip.ZipEntry |
entry
|
private java.lang.String |
name
|
(package private) ZipArchive |
zarch
|
| Fields inherited from class com.sun.tools.javac.file.BaseFileObject |
|---|
fileManager |
| Constructor Summary | |
|---|---|
protected |
ZipArchive.ZipFileObject(ZipArchive zarch,
java.lang.String name,
java.util.zip.ZipEntry entry)
|
| Method Summary | |
|---|---|
boolean |
delete()
Deletes this file object. |
boolean |
equals(java.lang.Object other)
|
java.nio.CharBuffer |
getCharContent(boolean ignoreEncodingErrors)
Gets the character content of this file object, if available. |
protected java.nio.charset.CharsetDecoder |
getDecoder(boolean ignoreEncodingErrors)
|
long |
getLastModified()
Gets the time this file object was last modified. |
java.lang.String |
getName()
Deprecated. |
java.lang.String |
getPath()
Deprecated. |
java.lang.String |
getZipEntryName()
|
java.lang.String |
getZipName()
|
int |
hashCode()
|
protected java.lang.String |
inferBinaryName(java.lang.Iterable<? extends java.io.File> path)
|
boolean |
isNameCompatible(java.lang.String cn,
JavaFileObject.Kind k)
Checks if this file object is compatible with the specified simple name and kind. |
java.io.InputStream |
openInputStream()
Gets an InputStream for this file object. |
java.io.OutputStream |
openOutputStream()
Gets an OutputStream for this file object. |
java.io.Writer |
openWriter()
Gets a Writer for this file object. |
java.net.URI |
toUri()
Returns a URI identifying this file object. |
| Methods inherited from class com.sun.tools.javac.file.BaseFileObject |
|---|
getAccessLevel, getKind, getNestingKind, openReader, removeExtension, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String name
ZipArchive zarch
java.util.zip.ZipEntry entry
| Constructor Detail |
|---|
protected ZipArchive.ZipFileObject(ZipArchive zarch,
java.lang.String name,
java.util.zip.ZipEntry entry)
| Method Detail |
|---|
public java.io.InputStream openInputStream()
throws java.io.IOException
FileObject
java.io.IOException - if an I/O error occurred
public java.io.OutputStream openOutputStream()
throws java.io.IOException
FileObject
java.io.IOException - if an I/O error occurredprotected java.nio.charset.CharsetDecoder getDecoder(boolean ignoreEncodingErrors)
getDecoder in class BaseFileObject
public java.io.Writer openWriter()
throws java.io.IOException
FileObject
java.io.IOException - if an I/O error occurred@Deprecated public java.lang.String getName()
FileObject"BobsApp\Test.java" on
the command line, this method should return "BobsApp\Test.java" whereas the toUri
method might return file:///C:/Documents%20and%20Settings/UncleBob/BobsApp/Test.java.
getName in interface FileObjectgetName in class BaseFileObject
public boolean isNameCompatible(java.lang.String cn,
JavaFileObject.Kind k)
JavaFileObject
cn - a simple name of a classk - a kind
true if this file object is compatible; false
otherwise@Deprecated public java.lang.String getPath()
getPath in class BaseFileObjectpublic long getLastModified()
FileObject
public boolean delete()
FileObject
public java.nio.CharBuffer getCharContent(boolean ignoreEncodingErrors)
throws java.io.IOException
FileObjectignoreEncodingErrors is true.
ignoreEncodingErrors - ignore encoding errors if true
null otherwise
java.io.IOException - if an I/O error occurredpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getZipName()
public java.lang.String getZipEntryName()
public java.net.URI toUri()
FileObject
protected java.lang.String inferBinaryName(java.lang.Iterable<? extends java.io.File> path)
inferBinaryName in class BaseFileObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||