code: public static Dimension readDimension(final DataInput pStream) throws IOException {
          int h = pStream.readShort();
          int v = pStream.readShort();
          return new Dimension(h, v);
      }
docs: Reads a dimension from the given stream.
  
  @param pStream the input stream
  @return the dimension read
  
  @throws java.io.IOException if an I/O error occurs during read