public IJSONWriter newJSONWriter(PrintWriter writer, ContentType contentType) { Defense.notNull(writer, "writer"); Defense.notNull(contentType, "contentType"); //TODO: Use the content type to add a filter //MarkupFilter filter = findFilter(contentType); return new JSONWriterImpl(writer); }
public IJSONWriter newJSONWriter(PrintWriter writer, ContentType contentType) { Defense.notNull(writer, "writer"); Defense.notNull(contentType, "contentType"); //TODO: Use the content type to add a filter //MarkupFilter filter = findFilter(contentType); return new JSONWriterImpl(writer); }