code: public String exportAsString() throws DescriptorExportException
     {
        try
        {
           StringBuilder sb = new StringBuilder();
  
           int read = 0;
           while ((read = is.read()) != -1)
           {
              sb = sb.append((char)read);
           }
  
           return sb.toString();
        }
        catch (IOException ioe)
        {
           throw new DescriptorExportException("Error during exportAsString: " + ioe.getMessage(), ioe);
        }
        finally
        {
           try
           {
              is.close();
           }
           catch (IOException ioe)
           {
              // Ignore
           }
        }
     }
docs: {@inheritDoc}