Click here to Skip to main content
15,891,316 members
Articles / Web Development / HTML

Java Class Viewer

Rate me:
Please Sign up or sign in to vote.
4.93/5 (41 votes)
21 Jun 2016MIT8 min read 178.7K   7.8K   96  
Watch the Java class file visually & interactively for the meaning of every byte
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--

  @(#)package.html    April 11, 2009

  Copyright  2009, FreeInternals.org. All rights reserved.
  Use is subject to license terms.

-->
</head>
<body bgcolor="white">

Default user interface component for {@code class} file, {@code jar} or
{@code zip} file.


<h2>Package Specification</h2>

{@link org.freeinternals.classfile.ui.JTreeClassFile} is a tree control for a class file:

<pre>
    ClassFile classfile = ...
    JTreeClassFile cf = new JTreeClassFile(classfile);
</pre>

<p>

{@link org.freeinternals.classfile.ui.JSplitPaneClassFile} is an integrated split pane
for {@code class} file:

<pre>
    byte[] classByteArray = ...
    JSplitPaneClassFile cfPane = new JSplitPaneClassFile(classByteArray);
</pre>

<p>

{@link org.freeinternals.classfile.ui.JTreeZipFile} is a tree for {@code jar} or
{@code zip} file containing java {@code class} file(s):

<pre>
    JarFile jf = ...
    JTreeZipFile zfTree = new JTreeZipFile(jf);
</pre>

<p>

{@link org.freeinternals.classfile.ui.Tool} provides utility files to get
{@code class} file byte array:

<pre>
    File f = new File("....class")
    JTreeZipFile zfTree = new JTreeZipFile(Tool.readClassFile(f));
</pre>

or:

<pre>
    JarFile jf = ...
    ZipEntry ze = ...
    JTreeZipFile zfTree = new JTreeZipFile(Tool.readClassFile(jf, ze));
</pre>


<!-- Put @see and @since tags down here. -->
@see org.freeinternals.classfile.ui.JSplitPaneClassFile
@see org.freeinternals.classfile.ui.JTreeZipFile
@since JDK 6.0
@author Amos Shi

</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer
United States United States
Deliver useful software to the world.

Comments and Discussions