|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodesize.Codesize
public class Codesize
Codesize is a tool for calculating the code size of a Java class file or Java archive (JAR).
Nested Class Summary | |
---|---|
static class |
Codesize.Item
Container which keeps information extracted by Codesize. |
Method Summary | |
---|---|
static void |
dump(List items,
PrintStream target)
Dumps a list of Codesize items to the specified PrintStream. |
static void |
main(String[] args)
The main entry for running the Codesize tool from the command line. |
static Codesize.Item |
processClassFile(File classFile)
Extracts code size information for a class file. |
static Codesize.Item |
processDirectory(File directory)
Extracts code size information for a directory. |
static Codesize.Item |
processZipFile(File zipFile)
Extracts code size information for a zip file. |
static Codesize.Item |
processZipFile(File zipFile,
ZipInputStream inputStream)
Extracts code size information for a zip file given a ZipInputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Codesize.Item processClassFile(File classFile)
classFile
- the filename of the class file
public static Codesize.Item processDirectory(File directory)
directory
- the filename of the directory
public static Codesize.Item processZipFile(File zipFile)
zipFile
- the filename of the zip file
public static Codesize.Item processZipFile(File zipFile, ZipInputStream inputStream) throws IOException
zipFile
- the filename of the zip fileinputStream
- the input stream of the zip file
IOException
public static void dump(List items, PrintStream target)
items
- the list of items to print outtarget
- the PrintStream to print the items topublic static void main(String[] args)
args
- the arguments given from the command line
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |