149150151152153154155156
try { StringWriter writer = new StringWriter(); this.write(writer); return writer.toString(); } catch (IOException e) { throw new ExecutionException(e); } }
152153154155156157158159
5253545556575859
try { XmlDocument document = XmlDocument.read(new ByteArrayInputStream(bytes)); String xml = document.toString(); return xml; } catch (SAXException e) { throw new ExecutionException(e); } }
5657585960616263
5354555657585960
try { String mimeType = FileUtils.getType(f); return this.types.contains(mimeType); } catch (IOException e) { throw new ExecutionException(e); } }
333435363738394041
try { Properties properties = new Properties(); properties.loadFromXML(inputStream); return properties; } catch (IOException e) { throw new ExecutionException(e); } }
3940414243444546
public String decode(final String s) { try { String str = new String(this.decoder.decodeBuffer(s)); return str; } catch (IOException e) { throw new ExecutionException(e); } }
5152535455565758
String s = new String(b); String str = new String(this.decoder.decodeBuffer(s)); byte[] bytes = str.getBytes(); return bytes; } catch (IOException e) { throw new ExecutionException(e); } }
try { Properties properties = new Properties(); properties.load(inputStream); return properties; } catch (IOException e) { throw new ExecutionException(e); } }
6667686970717273
String s = charBuffer.toString(); return s; } catch (CharacterCodingException e) { throw new ExecutionException(e); } }