|
|||||||||
| 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.ZipFileIndexArchive.ZipFileIndexFileObject
public static class ZipFileIndexArchive.ZipFileIndexFileObject
A subclass of JavaFileObject representing zip entries using the com.sun.tools.javac.file.ZipFileIndex implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.tools.JavaFileObject |
|---|
JavaFileObject.Kind |
| Field Summary | |
|---|---|
(package private) ZipFileIndex.Entry |
entry
The underlying zip entry object. |
(package private) java.io.InputStream |
inputStream
The InputStream for this zip entry (file.) |
private java.lang.String |
name
The entry's name. |
(package private) ZipFileIndex |
zfIndex
The zipfile containing the entry. |
(package private) java.lang.String |
zipName
The name of the zip file where this entry resides. |
| Fields inherited from class com.sun.tools.javac.file.BaseFileObject |
|---|
fileManager |
| Constructor Summary | |
|---|---|
ZipFileIndexArchive.ZipFileIndexFileObject(JavacFileManager fileManager,
ZipFileIndex zfIndex,
ZipFileIndex.Entry entry,
java.lang.String zipFileName)
|
|
| 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. see bug 6410637 |
java.lang.String |
getPath()
Deprecated. see bug 6410637 |
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. |
private byte[] |
read()
|
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
ZipFileIndex zfIndex
ZipFileIndex.Entry entry
java.io.InputStream inputStream
java.lang.String zipName
| Constructor Detail |
|---|
ZipFileIndexArchive.ZipFileIndexFileObject(JavacFileManager fileManager,
ZipFileIndex zfIndex,
ZipFileIndex.Entry entry,
java.lang.String zipFileName)
| Method Detail |
|---|
public java.io.InputStream openInputStream()
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.OutputStream openOutputStream()
throws java.io.IOException
FileObject
java.io.IOException - if an I/O error occurred
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 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
private byte[] read()
throws java.io.IOException
java.io.IOException
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 occurredprotected 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 | ||||||||