public static class ZipArchive.ZipFileObject extends BaseFileObject
BaseFileObject.CannotCreateUriError
JavaFileObject.Kind
fileManager
Modifier | Constructor and Description |
---|---|
protected |
ZipFileObject(ZipArchive zarch,
String name,
ZipEntry entry) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete() |
boolean |
equals(Object other)
Check if two file objects are equal.
|
CharBuffer |
getCharContent(boolean ignoreEncodingErrors) |
protected CharsetDecoder |
getDecoder(boolean ignoreEncodingErrors) |
JavaFileObject.Kind |
getKind() |
long |
getLastModified() |
String |
getName() |
String |
getShortName()
Return a short name for the object, such as for use in raw diagnostics
|
int |
hashCode() |
protected String |
inferBinaryName(Iterable<? extends File> path) |
boolean |
isNameCompatible(String cn,
JavaFileObject.Kind k) |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Writer |
openWriter() |
URI |
toUri() |
createJarUri, getAccessLevel, getKind, getNestingKind, getSimpleName, openReader, removeExtension, toString
protected ZipFileObject(ZipArchive zarch, String name, ZipEntry entry)
public URI toUri()
public String getName()
public String getShortName()
BaseFileObject
getShortName
in class BaseFileObject
public JavaFileObject.Kind getKind()
public InputStream openInputStream() throws IOException
IOException
public OutputStream openOutputStream() throws IOException
IOException
public CharBuffer getCharContent(boolean ignoreEncodingErrors) throws IOException
IOException
public Writer openWriter() throws IOException
IOException
public long getLastModified()
public boolean delete()
protected CharsetDecoder getDecoder(boolean ignoreEncodingErrors)
getDecoder
in class BaseFileObject
protected String inferBinaryName(Iterable<? extends File> path)
inferBinaryName
in class BaseFileObject
public boolean isNameCompatible(String cn, JavaFileObject.Kind k)
public boolean equals(Object other)
equals
in class BaseFileObject
public int hashCode()
hashCode
in class BaseFileObject
Copyright © 2017 earcam. All rights reserved.