content: /*
   * Marker_EXP.java    August 27, 2010, 23:51
   *
   * Copyright 2010, BinaryInternals.org. All rights reserved.
   * Use is subject to license terms.
   */
  package org.binaryinternals.format.jpeg;
  
  import java.io.IOException;
  import javax.swing.tree.DefaultMutableTreeNode;
  import org.binaryinternals.commonlib.core.FileFormatException;
  import org.binaryinternals.commonlib.core.PosDataInputStream;
  import org.binaryinternals.commonlib.ui.JTreeNodeFileComponent;
  
  /**
   *
   * @author Amos Shi
   */
  public class Marker_EOI extends Marker {
  
      Marker_EOI(final PosDataInputStream pDIS, int marker_code) throws IOException, FileFormatException {
          super(pDIS, marker_code);
      }
  
      @Override
      protected void parse(final PosDataInputStream pDisMarker) {
      }
  
      @Override
      public void generateTreeNode(DefaultMutableTreeNode parentNode) {
          DefaultMutableTreeNode markerNode = this.generateTreeNode_Marker(parentNode);
          JTreeNodeFileComponent comp = new JTreeNodeFileComponent(
                  this.getStartPos(),
                  MarkerCode.MARKER_CODE_BYTES_COUNT,
                  String.format("Marker code = 0x%X", super.getMarker()));
          comp.setDescription(MarkerCode.getMarkerCodeDescription());
          markerNode.add(new DefaultMutableTreeNode(comp));
      }
  
  }
  