code: public boolean write(DataOutputStream daOut, boolean bFixedLength)
      {
          try   {
              Short shData = (Short)this.getData();
              short sData;
              if (shData == null)
                  sData = NAN;
              else
                  sData = shData.shortValue();
              daOut.writeShort(sData);
              return true;
          } catch (IOException ex)    {
              ex.printStackTrace();
              return false;
          }
      }
docs: Write the physical data in this field to a stream file.
  @param daOut Output stream to add this field to.
  @param bFixedLength If false (default) be sure to get the length from the stream.
  @return boolean Success?