public class ZipFile extends java.lang.Object implements SpoonFile
Constructor and Description |
---|
ZipFile(ZipFolder parent,
java.lang.String name,
byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.io.InputStream |
getContent()
Gets the file content as a stream.
|
java.io.File |
getFileSystemParent()
Gets the parent of this resource on the file system.
|
java.lang.String |
getName()
Gets the name of this resource.
|
SpoonFolder |
getParent()
Gets the folder that contains this resource.
|
java.lang.String |
getPath()
Gets this resource path.
|
int |
hashCode() |
boolean |
isActualFile()
Tells if this file is an actual file (not a virtual file that holds
in-memory contents).
|
boolean |
isArchive()
Tells if this resource is an archive.
|
boolean |
isFile()
Tells if this resource is a file.
|
boolean |
isJava()
True if a Java source code file.
|
java.io.File |
toFile()
Gets the corresponding file if possible (returns null if this resource
does not correspond to any file on the filesystem).
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getContentChars
public ZipFile(ZipFolder parent, java.lang.String name, byte[] buffer)
public java.io.InputStream getContent()
SpoonFile
getContent
in interface SpoonFile
public java.lang.String getName()
SpoonResource
getName
in interface SpoonResource
public SpoonFolder getParent()
SpoonResource
getParent
in interface SpoonResource
public java.io.File getFileSystemParent()
SpoonResource
getFileSystemParent
in interface SpoonResource
public boolean isFile()
SpoonResource
isFile
in interface SpoonResource
public boolean isJava()
SpoonFile
public java.lang.String getPath()
SpoonResource
getPath
in interface SpoonResource
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isArchive()
SpoonResource
isArchive
in interface SpoonResource
public java.io.File toFile()
SpoonResource
toFile
in interface SpoonResource
public boolean isActualFile()
SpoonFile
isActualFile
in interface SpoonFile
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007–2021 Inria. All rights reserved.