@Override public void writeTo(OutputStream out, Syntax syntax) throws IOException, ModelRuntimeException, SyntaxNotSupportedException { if (syntax == Syntax.Trix) { writeTo(out); } else { throw new SyntaxNotSupportedException( "Syntax '" + syntax + "' not supported. Or the adapter implementor was too lazy to override thid method"); } }
public String serialize(Syntax syntax) throws SyntaxNotSupportedException { StringWriter sw = new StringWriter(); try { this.writeTo(sw, syntax); } catch (IOException e) { throw new ModelRuntimeException(e); } return sw.getBuffer().toString(); }
public void writeTo(Writer writer, Syntax syntax) throws IOException, ModelRuntimeException, SyntaxNotSupportedException { if (syntax == Syntax.Trix) { writeTo(writer); } else { throw new SyntaxNotSupportedException( "Syntax '" + syntax + "' not supported. Or the adapter implementor was too lazy to override thid method"); } }
@Override public void writeTo(Writer writer, Syntax syntax) throws IOException, ModelRuntimeException, SyntaxNotSupportedException { if (syntax == Syntax.Trix) { writeTo(writer); } else { throw new SyntaxNotSupportedException( "Syntax '" + syntax + "' not supported. Or the adapter implementor was too lazy to override thid method"); } }
@Override public String serialize(Syntax syntax) throws SyntaxNotSupportedException { StringWriter sw = new StringWriter(); try { this.writeTo(sw, syntax); } catch (IOException e) { throw new ModelRuntimeException(e); } return sw.getBuffer().toString(); }
public void writeTo(OutputStream out, Syntax syntax) throws IOException, ModelRuntimeException, SyntaxNotSupportedException { if (syntax == Syntax.Trix) { writeTo(out); } else { throw new SyntaxNotSupportedException( "Syntax '" + syntax + "' not supported. Or the adapter implementor was too lazy to override thid method"); } }