@Test public void testStripComments() { String jzunk = "\nstuff\nstuff\nstuff"; String stripped = CouchDBUtils.stripComments(jzunk); assertEquals("\nstuff\nstuff\nstuff", stripped); }
public static String stripComments(String json) { Pattern pat = Pattern.compile("/\\*(?:.)*?\\*/", Pattern.MULTILINE | Pattern.DOTALL); return pat.matcher(json).replaceAll(""); }
CouchDBUtils { public static String stripComments(String json) { Pattern pat = Pattern.compile("/\\*(?:.)*?\\*/", Pattern.MULTILINE | Pattern.DOTALL); return pat.matcher(json).replaceAll(""); } }
CouchDBUtils { public static String stripComments(String json) { Pattern pat = Pattern.compile("/\\*(?:.)*?\\*/", Pattern.MULTILINE | Pattern.DOTALL); return pat.matcher(json).replaceAll(""); } private  CouchDBUtils(); }
CouchDBUtils { public static String stripComments(String json) { Pattern pat = Pattern.compile("/\\*(?:.)*?\\*/", Pattern.MULTILINE | Pattern.DOTALL); return pat.matcher(json).replaceAll(""); } private  CouchDBUtils(); static String writeJSON(SimpleFeature feature, String featureClass, GeometryJSON gjson); static SimpleFeatureType createFeatureType(JSONObject obj, String name); static SimpleFeatureType createFeatureType(JSONObject obj, Name name); static String stripComments(String json); static String read(File f); }
CouchDBUtils { public static String stripComments(String json) { Pattern pat = Pattern.compile("/\\*(?:.)*?\\*/", Pattern.MULTILINE | Pattern.DOTALL); return pat.matcher(json).replaceAll(""); } private  CouchDBUtils(); static String writeJSON(SimpleFeature feature, String featureClass, GeometryJSON gjson); static SimpleFeatureType createFeatureType(JSONObject obj, String name); static SimpleFeatureType createFeatureType(JSONObject obj, Name name); static String stripComments(String json); static String read(File f);  }