| java.lang.Object net.sf.javaguard.FileEntry
FileEntry | public class FileEntry (Code) | | A simple data structure that holds a file entry. It contains the necessary
informations for the obfuscator so that it can read the file and access some
attributes of the file.
File entries are normally created by implementations of
FileContainer so that the obfuscator doesn't have to deal with the real location of a
certain file; i.e. to distinguish between files taken from a Jar file or
from a local directory.
|
Constructor Summary | |
public | FileEntry(DataInputStream dis, String name, boolean isClassFile, long size) Default constructor that creates a new file entry. |
Method Summary | |
public DataInputStream | getInputStream() Returns the data input stream for the file entry. | public String | getName() Returns the name for the file entry. | public long | getSize() Returns the size of the file the entry specifies. | public boolean | isClassFile() Returns whether the entry specifies a class file. |
FileEntry | public FileEntry(DataInputStream dis, String name, boolean isClassFile, long size)(Code) | | Default constructor that creates a new file entry.
Parameters: dis - the data input stream for the file entry Parameters: name - the name for the file entry Parameters: isClassFile - true if the entry specifies a class file; false else Parameters: size - the size of the file the entry specifies |
getInputStream | public DataInputStream getInputStream()(Code) | | Returns the data input stream for the file entry.
data input stream for the file entry |
getName | public String getName()(Code) | | Returns the name for the file entry.
the name for the file entry |
getSize | public long getSize()(Code) | | Returns the size of the file the entry specifies.
size of the file |
isClassFile | public boolean isClassFile()(Code) | | Returns whether the entry specifies a class file.
true if the entry specifies a class file; false else |
|
|