Package 

Class Structure

  • All Implemented Interfaces:

    
    public abstract class Structure
    
                        

    Base class for all structures defined in the class file format. Provides common services such as reading, writing and debugging.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Structure()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit read(DataInput input) Read this structure from the given DataInput.
      final Unit write(DataOutput output) Write this structure to the given DataOutput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Structure

        Structure()
    • Method Detail

      • read

         final Unit read(DataInput input)

        Read this structure from the given DataInput. Expects DataInput to be in JVM class file format and just before a structure of this kind.

        If the system property SYSTEM_PROPERTY_DEBUG is set, logging output is printed.

        Parameters:
        input - the DataInput for reading
      • write

         final Unit write(DataOutput output)

        Write this structure to the given DataOutput. The written bytes are in JVM class file format.

        If the system property SYSTEM_PROPERTY_DEBUG is set, logging output is printed.

        Parameters:
        output - the DataOutput for writing