Пример #1
0
 public String readAsString() throws DescriptorIOException {
   byte[] encoded = this.readAsBytes();
   try {
     return new String(encoded, DescriptorWriter.CHARSET);
   } catch (UnsupportedEncodingException e) {
     throw new DescriptorIOException("Cannot read from: " + locator.toString(), e);
   }
 }