MarkerSegment(Node node) throws IIOInvalidTreeException {
  tag=getAttributeValue(node,null,"MarkerTag",0,255,true);
  length=0;
  if (node instanceof IIOMetadataNode) {
    IIOMetadataNode iioNode=(IIOMetadataNode)node;
    try {
      data=(byte[])iioNode.getUserObject();
    }
 catch (    Exception e) {
      IIOInvalidTreeException newGuy=new IIOInvalidTreeException("Can't get User Object",node);
      newGuy.initCause(e);
      throw newGuy;
    }
  }
 else {
    throw new IIOInvalidTreeException("Node must have User Object",node);
  }
}

MarkerSegment ( Node node ) throws IIOInvalidTreeException { tag = getAttributeValue ( node , null , "MarkerTag" , 0 , 255 , true ) ; length = 0 ; if ( node instanceof IIOMetadataNode ) { IIOMetadataNode iioNode = ( IIOMetadataNode ) node ; try { data = ( byte [ ] ) iioNode . getUserObject ( ) ; } catch ( Exception e ) { IIOInvalidTreeException newGuy = new IIOInvalidTreeException ( "Can't get User Object" , node ) ; newGuy . initCause ( e ) ; throw newGuy ; } } else { throw new IIOInvalidTreeException ( "Node must have User Object" , node ) ; } }
construct a markersegment from an " unknown " dom node .
