target stringlengths 20 113k | src_fm stringlengths 11 86.3k | src_fm_fc stringlengths 21 86.4k | src_fm_fc_co stringlengths 30 86.4k | src_fm_fc_ms stringlengths 42 86.8k | src_fm_fc_ms_ff stringlengths 43 86.8k |
|---|---|---|---|---|---|
@Test public void testFilteringXmlByPatternFalse() { String pattern = "*.xml"; File file = new File("SomeFileWithXml.json"); CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern); Assert.assertFalse(filter.accept(file)); } | @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } } | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... |
@Test public void testFilteringXmlByPartialFileNamePattern() { String pattern = "*File*.xml"; File file = new File("SomeFileWithXml.xml"); CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern); Assert.assertTrue(filter.accept(file)); } | @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } } | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... | CustomPatternFileFilter implements FileFilter { @Override public boolean accept(File file) { String fileNameInLowerCase = file.getName().toLowerCase(); FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase); return (null != fileType) && fileNameInLowerCase.matches(pattern); } CustomPatternFileFilter(... |
@Test public void _3_get1() throws Exception { Response res = target("").path("1").request() .get(); assertEquals(200, res.getStatus()); assertEquals( "{\"active\":false,\"callback_url\":\"" + CALLBACK_URL + "\",\"failed\":false,\"filter\":{\"exists\":[],\"for_all\":[]},\"id\":1,\"message\":null}", res.readEntity(Strin... | @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... |
@Test public void _7_delete() throws Exception { Response res = target("").path("1").request() .delete(); assertEquals(204, res.getStatus()); } | @DELETE @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public static Response delete(@PathParam("id") long id) throws NotFound { boolean removed = Webhooks.instance().remove(id); if (removed) { return Responses.noContent(); } else { return Responses.badRequest(); } } | WebhookAPI { @DELETE @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public static Response delete(@PathParam("id") long id) throws NotFound { boolean removed = Webhooks.instance().remove(id); if (removed) { return Responses.noContent(); } else { return Responses.badRequest();... | WebhookAPI { @DELETE @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public static Response delete(@PathParam("id") long id) throws NotFound { boolean removed = Webhooks.instance().remove(id); if (removed) { return Responses.noContent(); } else { return Responses.badRequest();... | WebhookAPI { @DELETE @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public static Response delete(@PathParam("id") long id) throws NotFound { boolean removed = Webhooks.instance().remove(id); if (removed) { return Responses.noContent(); } else { return Responses.badRequest();... | WebhookAPI { @DELETE @Path("/{id}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public static Response delete(@PathParam("id") long id) throws NotFound { boolean removed = Webhooks.instance().remove(id); if (removed) { return Responses.noContent(); } else { return Responses.badRequest();... |
@Test public void _8_get_not_found() throws Exception { Response res = target("").path("1").request() .get(); assertEquals(404, res.getStatus()); } | @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... |
@Test public void _9_getAll() throws Exception { String body2 = "{\"callback_url\": \"" + CALLBACK_URL + "/2\"}"; String body3 = "{\"callback_url\": \"" + CALLBACK_URL + "/3\"}"; String body4 = "{\"callback_url\": \"" + CALLBACK_URL + "/4\"}"; target("").request().post(Entity.entity(body2, MediaType.APPLICATION_JSON_TY... | @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } } | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... | WebhookAPI { @GET @Produces(MediaType.APPLICATION_JSON) public static Response get() { return Responses.ok(Webhooks.instance().hooks()); } @GET @Produces(MediaType.APPLICATION_JSON) static Response get(); @GET @Path("/{id}") @Produces(MediaType.APPLICATION_JSON) static Response get(@PathParam("id") long id); @POST @Co... |
@Test public void DtoChangesURLを生成() throws Exception { URL url = Notifier.getDtoChangesUri(tx, time); assertEquals( "http: url.toString()); } | public static URL getDtoChangesUri(TransactionId.W tx, DateTime time) throws IOException { NotifierConfig conf = NotifierConfig.instance(); String urlStr = new Formatter().format( "http: conf.naefAddr(), conf.naefRestApiPort(), conf.naefRestApiVersion()) .toString(); StringJoiner queries = new StringJoiner("&"); if (tx... | Notifier implements ServletContextListener { public static URL getDtoChangesUri(TransactionId.W tx, DateTime time) throws IOException { NotifierConfig conf = NotifierConfig.instance(); String urlStr = new Formatter().format( "http: conf.naefAddr(), conf.naefRestApiPort(), conf.naefRestApiVersion()) .toString(); StringJ... | Notifier implements ServletContextListener { public static URL getDtoChangesUri(TransactionId.W tx, DateTime time) throws IOException { NotifierConfig conf = NotifierConfig.instance(); String urlStr = new Formatter().format( "http: conf.naefAddr(), conf.naefRestApiPort(), conf.naefRestApiVersion()) .toString(); StringJ... | Notifier implements ServletContextListener { public static URL getDtoChangesUri(TransactionId.W tx, DateTime time) throws IOException { NotifierConfig conf = NotifierConfig.instance(); String urlStr = new Formatter().format( "http: conf.naefAddr(), conf.naefRestApiPort(), conf.naefRestApiVersion()) .toString(); StringJ... | Notifier implements ServletContextListener { public static URL getDtoChangesUri(TransactionId.W tx, DateTime time) throws IOException { NotifierConfig conf = NotifierConfig.instance(); String urlStr = new Formatter().format( "http: conf.naefAddr(), conf.naefRestApiPort(), conf.naefRestApiVersion()) .toString(); StringJ... |
@Test public void testInnerClassNaming() { String expected = NameUtilitiesTest.class.getPackage().getName()+"." + NameUtilitiesTest.class.getSimpleName()+"." + "Inner" ; String name = NameUtilities.getFullName(Inner.class); Assert.assertEquals(expected, name); } | public static String getFullName(Class c) { if (c == null) { throw new IllegalArgumentException("class cannot be null"); } StringBuilder name = new StringBuilder(); name.append(c.getPackage().getName()).append("."); Class klaus = c; List<Class> enclosingClasses = new ArrayList<Class>(); while ((klaus = klaus.getEnclosi... | NameUtilities { public static String getFullName(Class c) { if (c == null) { throw new IllegalArgumentException("class cannot be null"); } StringBuilder name = new StringBuilder(); name.append(c.getPackage().getName()).append("."); Class klaus = c; List<Class> enclosingClasses = new ArrayList<Class>(); while ((klaus = ... | NameUtilities { public static String getFullName(Class c) { if (c == null) { throw new IllegalArgumentException("class cannot be null"); } StringBuilder name = new StringBuilder(); name.append(c.getPackage().getName()).append("."); Class klaus = c; List<Class> enclosingClasses = new ArrayList<Class>(); while ((klaus = ... | NameUtilities { public static String getFullName(Class c) { if (c == null) { throw new IllegalArgumentException("class cannot be null"); } StringBuilder name = new StringBuilder(); name.append(c.getPackage().getName()).append("."); Class klaus = c; List<Class> enclosingClasses = new ArrayList<Class>(); while ((klaus = ... | NameUtilities { public static String getFullName(Class c) { if (c == null) { throw new IllegalArgumentException("class cannot be null"); } StringBuilder name = new StringBuilder(); name.append(c.getPackage().getName()).append("."); Class klaus = c; List<Class> enclosingClasses = new ArrayList<Class>(); while ((klaus = ... |
@Test public void test() { Prologue prologue = new Prologue(); prologue.setPrefixMapping(PrefixMapping.Extended); Model model = RDFDataMgr.loadModel("virtual-predicates-example.ttl"); RDFDataMgr.write(System.out, model, RDFFormat.TURTLE_PRETTY); Map<Node, BinaryRelation> virtualPredicates = new HashMap<Node, BinaryRela... | @Override public Element transform(ElementTriplesBlock el) { Element result = applyTransform(el, virtualPredicates, varGen); return result; } | ElementTransformVirtualPredicates extends ElementTransformCopyBase { @Override public Element transform(ElementTriplesBlock el) { Element result = applyTransform(el, virtualPredicates, varGen); return result; } } | ElementTransformVirtualPredicates extends ElementTransformCopyBase { @Override public Element transform(ElementTriplesBlock el) { Element result = applyTransform(el, virtualPredicates, varGen); return result; } ElementTransformVirtualPredicates(); ElementTransformVirtualPredicates(Map<Node, BinaryRelation> virtualPred... | ElementTransformVirtualPredicates extends ElementTransformCopyBase { @Override public Element transform(ElementTriplesBlock el) { Element result = applyTransform(el, virtualPredicates, varGen); return result; } ElementTransformVirtualPredicates(); ElementTransformVirtualPredicates(Map<Node, BinaryRelation> virtualPred... | ElementTransformVirtualPredicates extends ElementTransformCopyBase { @Override public Element transform(ElementTriplesBlock el) { Element result = applyTransform(el, virtualPredicates, varGen); return result; } ElementTransformVirtualPredicates(); ElementTransformVirtualPredicates(Map<Node, BinaryRelation> virtualPred... |
@Test public void testReadSchema() throws IOException { List<Resource> tasks = SparqlQcReader.loadTasks("sparqlqc/1.4/benchmark/ucqrdfs.rdf"); for(Resource task : tasks) { RDFDataMgr.write(System.out, task.getModel(), RDFFormat.TURTLE); } } | public static List<Resource> loadTasks(String baseFile) throws IOException { List<Resource> testSuites = loadTestSuites(baseFile); List<Resource> testCases = extractTasks(testSuites); return testCases; } | SparqlQcReader { public static List<Resource> loadTasks(String baseFile) throws IOException { List<Resource> testSuites = loadTestSuites(baseFile); List<Resource> testCases = extractTasks(testSuites); return testCases; } } | SparqlQcReader { public static List<Resource> loadTasks(String baseFile) throws IOException { List<Resource> testSuites = loadTestSuites(baseFile); List<Resource> testCases = extractTasks(testSuites); return testCases; } } | SparqlQcReader { public static List<Resource> loadTasks(String baseFile) throws IOException { List<Resource> testSuites = loadTestSuites(baseFile); List<Resource> testCases = extractTasks(testSuites); return testCases; } static List<Resource> loadTestSuitesSqcf(String baseFile); static List<Resource> extractTasks(Coll... | SparqlQcReader { public static List<Resource> loadTasks(String baseFile) throws IOException { List<Resource> testSuites = loadTestSuites(baseFile); List<Resource> testCases = extractTasks(testSuites); return testCases; } static List<Resource> loadTestSuitesSqcf(String baseFile); static List<Resource> extractTasks(Coll... |
@Test public void testUsedPrefixes1() { PrefixMapping pm = RDFDataMgr.loadModel("rdf-prefixes/wikidata.jsonld"); String queryStr = "SELECT ?s ?desc WHERE {\n" + " ?s wdt:P279 wd:Q7725634 .\n" + " OPTIONAL {\n" + " ?s rdfs:label ?desc \n" + " FILTER (LANG(?desc) = \"en\").\n" + " }\n" + "}"; SparqlStmt stmt = SparqlStmt... | public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } static Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt); static List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts); static SparqlStmt optimizePrefixes(SparqlStmt stmt); s... | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } static Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt); static List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts); static SparqlStmt optimizePrefixes(SparqlStmt stmt); s... |
@Test public void testUsedPrefixes2() { PrefixMapping pm = RDFDataMgr.loadModel("rdf-prefixes/wikidata.jsonld"); String queryStr = "INSERT {" + " ?s wdt:P279 wd:Q7725634 .\n" + "}\n" + " WHERE {\n" + " ?s rdfs:label ?desc \n" + " FILTER (LANG(?desc) = \"en\").\n" + " }\n"; SparqlStmt stmt = SparqlStmtParserImpl.create(... | public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } } | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } static Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt); static List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts); static SparqlStmt optimizePrefixes(SparqlStmt stmt); s... | SparqlStmtUtils { public static SparqlStmt optimizePrefixes(SparqlStmt stmt) { optimizePrefixes(stmt, null); return stmt; } static Map<String, Boolean> mentionedEnvVars(SparqlStmt stmt); static List<Var> getUnionProjectVars(Collection<? extends SparqlStmt> stmts); static SparqlStmt optimizePrefixes(SparqlStmt stmt); s... |
@Test public void test() { String r = UriUtils.replaceNamespace("http: Assert.assertEquals("http: } | public static String replaceNamespace(String base, String replacement) { Matcher m = replaceNamespacePattern.matcher(base); String result = m.replaceAll(replacement); return result; } | UriUtils { public static String replaceNamespace(String base, String replacement) { Matcher m = replaceNamespacePattern.matcher(base); String result = m.replaceAll(replacement); return result; } } | UriUtils { public static String replaceNamespace(String base, String replacement) { Matcher m = replaceNamespacePattern.matcher(base); String result = m.replaceAll(replacement); return result; } } | UriUtils { public static String replaceNamespace(String base, String replacement) { Matcher m = replaceNamespacePattern.matcher(base); String result = m.replaceAll(replacement); return result; } static Map<String, String> createMapFromUriQueryString(URI uri); static String getNameSpace(String s); static String getLoca... | UriUtils { public static String replaceNamespace(String base, String replacement) { Matcher m = replaceNamespacePattern.matcher(base); String result = m.replaceAll(replacement); return result; } static Map<String, String> createMapFromUriQueryString(URI uri); static String getNameSpace(String s); static String getLoca... |
@Test public void testReducedPrefixes() { Query query = QueryFactory.create(String.join("\n", "PREFIX rdf: <http: "PREFIX foo: <http: "PREFIX bar: <http: "PREFIX baz: <http: "SELECT * {", " { SELECT * {", " ?s a foo:Foo.", " } }", " ?s rdf:type foo:Bar", "}")); PrefixMapping pm = org.aksw.jena_sparql_api.utils.QueryUti... | public static PrefixMapping usedPrefixes(Query query, PrefixMapping global) { PrefixMapping local = query.getPrefixMapping(); PrefixMapping pm = global == null ? local : new PrefixMapping2(global, local); PrefixMapping result = usedReferencePrefixes(query, pm); return result; } | QueryUtils { public static PrefixMapping usedPrefixes(Query query, PrefixMapping global) { PrefixMapping local = query.getPrefixMapping(); PrefixMapping pm = global == null ? local : new PrefixMapping2(global, local); PrefixMapping result = usedReferencePrefixes(query, pm); return result; } } | QueryUtils { public static PrefixMapping usedPrefixes(Query query, PrefixMapping global) { PrefixMapping local = query.getPrefixMapping(); PrefixMapping pm = global == null ? local : new PrefixMapping2(global, local); PrefixMapping result = usedReferencePrefixes(query, pm); return result; } } | QueryUtils { public static PrefixMapping usedPrefixes(Query query, PrefixMapping global) { PrefixMapping local = query.getPrefixMapping(); PrefixMapping pm = global == null ? local : new PrefixMapping2(global, local); PrefixMapping result = usedReferencePrefixes(query, pm); return result; } static Query applyOpTransfo... | QueryUtils { public static PrefixMapping usedPrefixes(Query query, PrefixMapping global) { PrefixMapping local = query.getPrefixMapping(); PrefixMapping pm = global == null ? local : new PrefixMapping2(global, local); PrefixMapping result = usedReferencePrefixes(query, pm); return result; } static Query applyOpTransfo... |
@Test public void test() { StringReader reader = new StringReader(JSON); JsonParser parser = Json.createParser(reader); Attributes dataset = new JSONReader(parser).readDataset(null); assertArrayEquals(IS, dataset.getStrings(Tag.SelectorISValue)); assertArrayEquals(DS, dataset.getStrings(Tag.SelectorDSValue)); assertInf... | public Attributes readDataset(Attributes attrs) { boolean wrappedInArray = next() == Event.START_ARRAY; if (wrappedInArray) next(); expect(Event.START_OBJECT); if (attrs == null) { attrs = new Attributes(); } fmi = null; next(); doReadDataset(attrs); if (wrappedInArray) next(); return attrs; } | JSONReader { public Attributes readDataset(Attributes attrs) { boolean wrappedInArray = next() == Event.START_ARRAY; if (wrappedInArray) next(); expect(Event.START_OBJECT); if (attrs == null) { attrs = new Attributes(); } fmi = null; next(); doReadDataset(attrs); if (wrappedInArray) next(); return attrs; } } | JSONReader { public Attributes readDataset(Attributes attrs) { boolean wrappedInArray = next() == Event.START_ARRAY; if (wrappedInArray) next(); expect(Event.START_OBJECT); if (attrs == null) { attrs = new Attributes(); } fmi = null; next(); doReadDataset(attrs); if (wrappedInArray) next(); return attrs; } JSONReader(J... | JSONReader { public Attributes readDataset(Attributes attrs) { boolean wrappedInArray = next() == Event.START_ARRAY; if (wrappedInArray) next(); expect(Event.START_OBJECT); if (attrs == null) { attrs = new Attributes(); } fmi = null; next(); doReadDataset(attrs); if (wrappedInArray) next(); return attrs; } JSONReader(J... | JSONReader { public Attributes readDataset(Attributes attrs) { boolean wrappedInArray = next() == Event.START_ARRAY; if (wrappedInArray) next(); expect(Event.START_OBJECT); if (attrs == null) { attrs = new Attributes(); } fmi = null; next(); doReadDataset(attrs); if (wrappedInArray) next(); return attrs; } JSONReader(J... |
@Test public void testTagToBytesLE() { assertArrayEquals(TAG_PIXEL_DATA_LE, ByteUtils.tagToBytesLE(Tag.PixelData, new byte[4] , 0)); } | public static byte[] tagToBytesLE(int i, byte[] bytes, int off) { bytes[off + 1] = (byte) (i >> 24); bytes[off] = (byte) (i >> 16); bytes[off + 3] = (byte) (i >> 8); bytes[off + 2] = (byte) i; return bytes; } | ByteUtils { public static byte[] tagToBytesLE(int i, byte[] bytes, int off) { bytes[off + 1] = (byte) (i >> 24); bytes[off] = (byte) (i >> 16); bytes[off + 3] = (byte) (i >> 8); bytes[off + 2] = (byte) i; return bytes; } } | ByteUtils { public static byte[] tagToBytesLE(int i, byte[] bytes, int off) { bytes[off + 1] = (byte) (i >> 24); bytes[off] = (byte) (i >> 16); bytes[off + 3] = (byte) (i >> 8); bytes[off + 2] = (byte) i; return bytes; } } | ByteUtils { public static byte[] tagToBytesLE(int i, byte[] bytes, int off) { bytes[off + 1] = (byte) (i >> 24); bytes[off] = (byte) (i >> 16); bytes[off + 3] = (byte) (i >> 8); bytes[off + 2] = (byte) i; return bytes; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boole... | ByteUtils { public static byte[] tagToBytesLE(int i, byte[] bytes, int off) { bytes[off + 1] = (byte) (i >> 24); bytes[off] = (byte) (i >> 16); bytes[off + 3] = (byte) (i >> 8); bytes[off + 2] = (byte) i; return bytes; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boole... |
@Test public void testFloatToBytesBE() { assertArrayEquals(FLOAT_PI_BE , ByteUtils.floatToBytesBE((float) Math.PI, new byte[4], 0)); } | public static byte[] floatToBytesBE(float f, byte[] bytes, int off) { return intToBytesBE(Float.floatToIntBits(f), bytes, off); } | ByteUtils { public static byte[] floatToBytesBE(float f, byte[] bytes, int off) { return intToBytesBE(Float.floatToIntBits(f), bytes, off); } } | ByteUtils { public static byte[] floatToBytesBE(float f, byte[] bytes, int off) { return intToBytesBE(Float.floatToIntBits(f), bytes, off); } } | ByteUtils { public static byte[] floatToBytesBE(float f, byte[] bytes, int off) { return intToBytesBE(Float.floatToIntBits(f), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static int by... | ByteUtils { public static byte[] floatToBytesBE(float f, byte[] bytes, int off) { return intToBytesBE(Float.floatToIntBits(f), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static int by... |
@Test public void testFloatToBytesLE() { assertArrayEquals(FLOAT_PI_LE , ByteUtils.floatToBytesLE((float) Math.PI, new byte[4], 0)); } | public static byte[] floatToBytesLE(float f, byte[] bytes, int off) { return intToBytesLE(Float.floatToIntBits(f), bytes, off); } | ByteUtils { public static byte[] floatToBytesLE(float f, byte[] bytes, int off) { return intToBytesLE(Float.floatToIntBits(f), bytes, off); } } | ByteUtils { public static byte[] floatToBytesLE(float f, byte[] bytes, int off) { return intToBytesLE(Float.floatToIntBits(f), bytes, off); } } | ByteUtils { public static byte[] floatToBytesLE(float f, byte[] bytes, int off) { return intToBytesLE(Float.floatToIntBits(f), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static int by... | ByteUtils { public static byte[] floatToBytesLE(float f, byte[] bytes, int off) { return intToBytesLE(Float.floatToIntBits(f), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static int by... |
@Test public void testDoubleToBytesBE() { assertArrayEquals(DOUBLE_PI_BE , ByteUtils.doubleToBytesBE(Math.PI, new byte[8], 0)); } | public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) { return longToBytesBE(Double.doubleToLongBits(d), bytes, off); } | ByteUtils { public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) { return longToBytesBE(Double.doubleToLongBits(d), bytes, off); } } | ByteUtils { public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) { return longToBytesBE(Double.doubleToLongBits(d), bytes, off); } } | ByteUtils { public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) { return longToBytesBE(Double.doubleToLongBits(d), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static ... | ByteUtils { public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) { return longToBytesBE(Double.doubleToLongBits(d), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static ... |
@Test public void testDoubleToBytesLE() { assertArrayEquals(DOUBLE_PI_LE , ByteUtils.doubleToBytesLE(Math.PI, new byte[8], 0)); } | public static byte[] doubleToBytesLE(double d, byte[] bytes, int off) { return longToBytesLE(Double.doubleToLongBits(d), bytes, off); } | ByteUtils { public static byte[] doubleToBytesLE(double d, byte[] bytes, int off) { return longToBytesLE(Double.doubleToLongBits(d), bytes, off); } } | ByteUtils { public static byte[] doubleToBytesLE(double d, byte[] bytes, int off) { return longToBytesLE(Double.doubleToLongBits(d), bytes, off); } } | ByteUtils { public static byte[] doubleToBytesLE(double d, byte[] bytes, int off) { return longToBytesLE(Double.doubleToLongBits(d), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static ... | ByteUtils { public static byte[] doubleToBytesLE(double d, byte[] bytes, int off) { return longToBytesLE(Double.doubleToLongBits(d), bytes, off); } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int bytesToUShortBE(byte[] bytes, int off); static ... |
@Test public void testSwapShorts() { assertArrayEquals(TAG_PIXEL_DATA_LE , ByteUtils.swapShorts(TAG_PIXEL_DATA_BE.clone(), 0, TAG_PIXEL_DATA_BE.length)); } | public static byte[][] swapShorts(byte bs[][]) { int carry = 0; for (int i = 0; i < bs.length; i++) { byte[] b = bs[i]; if (carry != 0) swapLastFirst(bs[i-1], b); int len = b.length - carry; swapShorts(b, carry, len & ~1); carry = len & 1; } return bs; } | ByteUtils { public static byte[][] swapShorts(byte bs[][]) { int carry = 0; for (int i = 0; i < bs.length; i++) { byte[] b = bs[i]; if (carry != 0) swapLastFirst(bs[i-1], b); int len = b.length - carry; swapShorts(b, carry, len & ~1); carry = len & 1; } return bs; } } | ByteUtils { public static byte[][] swapShorts(byte bs[][]) { int carry = 0; for (int i = 0; i < bs.length; i++) { byte[] b = bs[i]; if (carry != 0) swapLastFirst(bs[i-1], b); int len = b.length - carry; swapShorts(b, carry, len & ~1); carry = len & 1; } return bs; } } | ByteUtils { public static byte[][] swapShorts(byte bs[][]) { int carry = 0; for (int i = 0; i < bs.length; i++) { byte[] b = bs[i]; if (carry != 0) swapLastFirst(bs[i-1], b); int len = b.length - carry; swapShorts(b, carry, len & ~1); carry = len & 1; } return bs; } static int bytesToVR(byte[] bytes, int off); static ... | ByteUtils { public static byte[][] swapShorts(byte bs[][]) { int carry = 0; for (int i = 0; i < bs.length; i++) { byte[] b = bs[i]; if (carry != 0) swapLastFirst(bs[i-1], b); int len = b.length - carry; swapShorts(b, carry, len & ~1); carry = len & 1; } return bs; } static int bytesToVR(byte[] bytes, int off); static ... |
@Test public void testSwapInts() { assertArrayEquals(FLOAT_PI_LE , ByteUtils.swapInts(FLOAT_PI_BE.clone(), 0, FLOAT_PI_BE.length)); } | public static byte[] swapInts(byte b[], int off, int len) { checkLength(len, 4); for (int i = off, n = off + len; i < n; i += 4) { swap(b, i, i+3); swap(b, i+1, i+2); } return b; } | ByteUtils { public static byte[] swapInts(byte b[], int off, int len) { checkLength(len, 4); for (int i = off, n = off + len; i < n; i += 4) { swap(b, i, i+3); swap(b, i+1, i+2); } return b; } } | ByteUtils { public static byte[] swapInts(byte b[], int off, int len) { checkLength(len, 4); for (int i = off, n = off + len; i < n; i += 4) { swap(b, i, i+3); swap(b, i+1, i+2); } return b; } } | ByteUtils { public static byte[] swapInts(byte b[], int off, int len) { checkLength(len, 4); for (int i = off, n = off + len; i < n; i += 4) { swap(b, i, i+3); swap(b, i+1, i+2); } return b; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int by... | ByteUtils { public static byte[] swapInts(byte b[], int off, int len) { checkLength(len, 4); for (int i = off, n = off + len; i < n; i += 4) { swap(b, i, i+3); swap(b, i+1, i+2); } return b; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int off, boolean bigEndian); static int by... |
@Test public void testSwapLongs() { assertArrayEquals(DOUBLE_PI_LE , ByteUtils.swapLongs(DOUBLE_PI_BE.clone(), 0, DOUBLE_PI_BE.length)); } | public static byte[] swapLongs(byte b[], int off, int len) { checkLength(len, 8); for (int i = off, n = off + len; i < n; i += 8) { swap(b, i, i+7); swap(b, i+1, i+6); swap(b, i+2, i+5); swap(b, i+3, i+4); } return b; } | ByteUtils { public static byte[] swapLongs(byte b[], int off, int len) { checkLength(len, 8); for (int i = off, n = off + len; i < n; i += 8) { swap(b, i, i+7); swap(b, i+1, i+6); swap(b, i+2, i+5); swap(b, i+3, i+4); } return b; } } | ByteUtils { public static byte[] swapLongs(byte b[], int off, int len) { checkLength(len, 8); for (int i = off, n = off + len; i < n; i += 8) { swap(b, i, i+7); swap(b, i+1, i+6); swap(b, i+2, i+5); swap(b, i+3, i+4); } return b; } } | ByteUtils { public static byte[] swapLongs(byte b[], int off, int len) { checkLength(len, 8); for (int i = off, n = off + len; i < n; i += 8) { swap(b, i, i+7); swap(b, i+1, i+6); swap(b, i+2, i+5); swap(b, i+3, i+4); } return b; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int... | ByteUtils { public static byte[] swapLongs(byte b[], int off, int len) { checkLength(len, 8); for (int i = off, n = off + len; i < n; i += 8) { swap(b, i, i+7); swap(b, i+1, i+6); swap(b, i+2, i+5); swap(b, i+3, i+4); } return b; } static int bytesToVR(byte[] bytes, int off); static int bytesToUShort(byte[] bytes, int... |
@Test(expected = EOFException.class) public void testNoOutOfMemoryErrorOnInvalidLength() throws IOException { byte[] b = { 8, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 'e', 'v', 'i', 'l', 'l', 'e', 'n', 'g', 'h' }; try ( DicomInputStream in = new DicomInputStream(new ByteArrayInputStream(b))) { in.readDataset(-1, -1); } } | public Attributes readDataset(int len, int stopTag) throws IOException { handler.startDataset(this); readFileMetaInformation(); Attributes attrs = new Attributes(bigEndian, 64); readAttributes(attrs, len, stopTag); attrs.trimToSize(); handler.endDataset(this); return attrs; } | DicomInputStream extends FilterInputStream implements DicomInputHandler, BulkDataCreator { public Attributes readDataset(int len, int stopTag) throws IOException { handler.startDataset(this); readFileMetaInformation(); Attributes attrs = new Attributes(bigEndian, 64); readAttributes(attrs, len, stopTag); attrs.trimToSi... | DicomInputStream extends FilterInputStream implements DicomInputHandler, BulkDataCreator { public Attributes readDataset(int len, int stopTag) throws IOException { handler.startDataset(this); readFileMetaInformation(); Attributes attrs = new Attributes(bigEndian, 64); readAttributes(attrs, len, stopTag); attrs.trimToSi... | DicomInputStream extends FilterInputStream implements DicomInputHandler, BulkDataCreator { public Attributes readDataset(int len, int stopTag) throws IOException { handler.startDataset(this); readFileMetaInformation(); Attributes attrs = new Attributes(bigEndian, 64); readAttributes(attrs, len, stopTag); attrs.trimToSi... | DicomInputStream extends FilterInputStream implements DicomInputHandler, BulkDataCreator { public Attributes readDataset(int len, int stopTag) throws IOException { handler.startDataset(this); readFileMetaInformation(); Attributes attrs = new Attributes(bigEndian, 64); readAttributes(attrs, len, stopTag); attrs.trimToSi... |
@Test public void testWriteCommand() throws IOException { DicomOutputStream out = new DicomOutputStream( new FileOutputStream(file), UID.ImplicitVRLittleEndian); try { out.writeCommand(cechorq()); } finally { out.close(); } assertEquals(4, readAttributes().size()); } | public void writeCommand(Attributes cmd) throws IOException { if (explicitVR || bigEndian) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian); cmd.writeGroupTo(this, Tag.CommandGroupLength); } | DicomOutputStream extends FilterOutputStream { public void writeCommand(Attributes cmd) throws IOException { if (explicitVR || bigEndian) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian); cmd.writeGroupTo(this, Tag.CommandGroupLength); } } | DicomOutputStream extends FilterOutputStream { public void writeCommand(Attributes cmd) throws IOException { if (explicitVR || bigEndian) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian); cmd.writeGroupTo(this, Tag.CommandGroupLength); } DicomOutputStream(OutputStream out, String... | DicomOutputStream extends FilterOutputStream { public void writeCommand(Attributes cmd) throws IOException { if (explicitVR || bigEndian) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian); cmd.writeGroupTo(this, Tag.CommandGroupLength); } DicomOutputStream(OutputStream out, String... | DicomOutputStream extends FilterOutputStream { public void writeCommand(Attributes cmd) throws IOException { if (explicitVR || bigEndian) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian); cmd.writeGroupTo(this, Tag.CommandGroupLength); } DicomOutputStream(OutputStream out, String... |
@Test public void testMatches() { ItemPointer ip = new ItemPointer(Tag.RequestAttributesSequence); AttributeSelector selector = new AttributeSelector(Tag.StudyInstanceUID, null, ip); assertTrue(selector.matches(Collections.singletonList(ip), null, Tag.StudyInstanceUID)); } | public boolean matches(List<ItemPointer> itemPointers, String privateCreator, int tag) { int level; if (tag != this.tag || !Objects.equals(privateCreator, this.privateCreator) || (itemPointers.size() != (level = level()))) { return false; } for (int i = 0; i < level; i++) { ItemPointer itemPointer = itemPointers.get(i)... | AttributeSelector implements Serializable { public boolean matches(List<ItemPointer> itemPointers, String privateCreator, int tag) { int level; if (tag != this.tag || !Objects.equals(privateCreator, this.privateCreator) || (itemPointers.size() != (level = level()))) { return false; } for (int i = 0; i < level; i++) { I... | AttributeSelector implements Serializable { public boolean matches(List<ItemPointer> itemPointers, String privateCreator, int tag) { int level; if (tag != this.tag || !Objects.equals(privateCreator, this.privateCreator) || (itemPointers.size() != (level = level()))) { return false; } for (int i = 0; i < level; i++) { I... | AttributeSelector implements Serializable { public boolean matches(List<ItemPointer> itemPointers, String privateCreator, int tag) { int level; if (tag != this.tag || !Objects.equals(privateCreator, this.privateCreator) || (itemPointers.size() != (level = level()))) { return false; } for (int i = 0; i < level; i++) { I... | AttributeSelector implements Serializable { public boolean matches(List<ItemPointer> itemPointers, String privateCreator, int tag) { int level; if (tag != this.tag || !Objects.equals(privateCreator, this.privateCreator) || (itemPointers.size() != (level = level()))) { return false; } for (int i = 0; i < level; i++) { I... |
@Test public void testWriteDataset() throws IOException { DicomOutputStream out = new DicomOutputStream(file); } | public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.undefSequenceLength || !encOpts.undefItemLength)... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... |
@Test public void testWriteDatasetWithGroupLength() throws IOException { DicomOutputStream out = new DicomOutputStream(file); out.setEncodingOptions( new DicomEncodingOptions(true, true, false, true, false)); testWriteDataset(out, UID.ExplicitVRLittleEndian); } | public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... |
@Test public void testWriteDatasetWithoutUndefLength() throws IOException { DicomOutputStream out = new DicomOutputStream(file); out.setEncodingOptions( new DicomEncodingOptions(false, false, false, false, false)); testWriteDataset(out, UID.ExplicitVRLittleEndian); } | public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... |
@Test public void testWriteDatasetWithUndefEmptyLength() throws IOException { DicomOutputStream out = new DicomOutputStream(file); out.setEncodingOptions( new DicomEncodingOptions(false, true, true, true, true)); testWriteDataset(out, UID.ExplicitVRLittleEndian); } | public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); } | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... | DicomOutputStream extends FilterOutputStream { public final void setEncodingOptions(DicomEncodingOptions encOpts) { if (encOpts == null) throw new NullPointerException(); this.encOpts = encOpts; } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); ... |
@Test public void testSerializeDataset() throws Exception { ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream(file)); try { out.writeObject(dataset()); out.writeUTF("END"); } finally { out.close(); } deserializeAttributes(); } | public void close() throws IOException { try { finish(); } catch (IOException ignored) { } super.close(); } | DicomOutputStream extends FilterOutputStream { public void close() throws IOException { try { finish(); } catch (IOException ignored) { } super.close(); } } | DicomOutputStream extends FilterOutputStream { public void close() throws IOException { try { finish(); } catch (IOException ignored) { } super.close(); } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); } | DicomOutputStream extends FilterOutputStream { public void close() throws IOException { try { finish(); } catch (IOException ignored) { } super.close(); } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); final boolean isExplicitVR(); final boolea... | DicomOutputStream extends FilterOutputStream { public void close() throws IOException { try { finish(); } catch (IOException ignored) { } super.close(); } DicomOutputStream(OutputStream out, String tsuid); DicomOutputStream(File file); final void setPreamble(byte[] preamble); final boolean isExplicitVR(); final boolea... |
@Test(expected = IllegalStateException.class) public void testWriteFMIDeflated() throws IOException { try (DicomOutputStream out = new DicomOutputStream( new ByteArrayOutputStream(), UID.DeflatedExplicitVRLittleEndian)) { out.writeFileMetaInformation( Attributes.createFileMetaInformation(UIDUtils.createUID(), UID.CTIma... | public void writeFileMetaInformation(Attributes fmi) throws IOException { if (!explicitVR || bigEndian || countingOutputStream != null) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian + ", deflated=" + (countingOutputStream != null)); write(preamble); write(DICM); fmi.writeGroupT... | DicomOutputStream extends FilterOutputStream { public void writeFileMetaInformation(Attributes fmi) throws IOException { if (!explicitVR || bigEndian || countingOutputStream != null) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian + ", deflated=" + (countingOutputStream != null))... | DicomOutputStream extends FilterOutputStream { public void writeFileMetaInformation(Attributes fmi) throws IOException { if (!explicitVR || bigEndian || countingOutputStream != null) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian + ", deflated=" + (countingOutputStream != null))... | DicomOutputStream extends FilterOutputStream { public void writeFileMetaInformation(Attributes fmi) throws IOException { if (!explicitVR || bigEndian || countingOutputStream != null) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian + ", deflated=" + (countingOutputStream != null))... | DicomOutputStream extends FilterOutputStream { public void writeFileMetaInformation(Attributes fmi) throws IOException { if (!explicitVR || bigEndian || countingOutputStream != null) throw new IllegalStateException("explicitVR=" + explicitVR + ", bigEndian=" + bigEndian + ", deflated=" + (countingOutputStream != null))... |
@Test public void testWriteDeflatedEvenLength() throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); try (DicomOutputStream dos = new DicomOutputStream( out, UID.DeflatedExplicitVRLittleEndian)) { Attributes attrs = new Attributes(); attrs.setString(Tag.SOPClassUID, VR.UI, UID.CTImageStorage); ... | public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.undefSequenceLength || !encOpts.undefItemLength)... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... | DicomOutputStream extends FilterOutputStream { public void writeDataset(Attributes fmi, Attributes dataset) throws IOException { if (fmi != null) { writeFileMetaInformation(fmi); switchTransferSyntax(fmi.getString(Tag.TransferSyntaxUID, null)); } if (dataset.bigEndian() != bigEndian || encOpts.groupLength || !encOpts.u... |
@Test public void testGetRecordType() { RecordFactory f = new RecordFactory(); assertEquals(RecordType.IMAGE, f.getRecordType(UID.SecondaryCaptureImageStorage)); } | public RecordType getRecordType(String cuid) { if (cuid == null) throw new NullPointerException(); lazyLoadDefaultConfiguration(); RecordType recordType = recordTypes.get(cuid); return recordType != null ? recordType : RecordType.PRIVATE; } | RecordFactory { public RecordType getRecordType(String cuid) { if (cuid == null) throw new NullPointerException(); lazyLoadDefaultConfiguration(); RecordType recordType = recordTypes.get(cuid); return recordType != null ? recordType : RecordType.PRIVATE; } } | RecordFactory { public RecordType getRecordType(String cuid) { if (cuid == null) throw new NullPointerException(); lazyLoadDefaultConfiguration(); RecordType recordType = recordTypes.get(cuid); return recordType != null ? recordType : RecordType.PRIVATE; } } | RecordFactory { public RecordType getRecordType(String cuid) { if (cuid == null) throw new NullPointerException(); lazyLoadDefaultConfiguration(); RecordType recordType = recordTypes.get(cuid); return recordType != null ? recordType : RecordType.PRIVATE; } void loadDefaultConfiguration(); void loadConfiguration(String... | RecordFactory { public RecordType getRecordType(String cuid) { if (cuid == null) throw new NullPointerException(); lazyLoadDefaultConfiguration(); RecordType recordType = recordTypes.get(cuid); return recordType != null ? recordType : RecordType.PRIVATE; } void loadDefaultConfiguration(); void loadConfiguration(String... |
@Test public void mergeNestedKeys() throws Exception { Attributes attrs = withSSA(returnKeys()); FindSCU.mergeKeys(attrs, withSSA(matchingKeys())); assertEquals(mergedKeys(), attrs.getNestedDataset(Tag.ScheduledStepAttributesSequence)); } | static void mergeKeys(Attributes attrs, Attributes keys) { try { attrs.accept(new MergeNested(keys), false); } catch (Exception e) { throw new RuntimeException(e); } attrs.addAll(keys); } | FindSCU { static void mergeKeys(Attributes attrs, Attributes keys) { try { attrs.accept(new MergeNested(keys), false); } catch (Exception e) { throw new RuntimeException(e); } attrs.addAll(keys); } } | FindSCU { static void mergeKeys(Attributes attrs, Attributes keys) { try { attrs.accept(new MergeNested(keys), false); } catch (Exception e) { throw new RuntimeException(e); } attrs.addAll(keys); } FindSCU(); } | FindSCU { static void mergeKeys(Attributes attrs, Attributes keys) { try { attrs.accept(new MergeNested(keys), false); } catch (Exception e) { throw new RuntimeException(e); } attrs.addAll(keys); } FindSCU(); final void setPriority(int priority); final void setInformationModel(InformationModel model, String[] tss,
... | FindSCU { static void mergeKeys(Attributes attrs, Attributes keys) { try { attrs.accept(new MergeNested(keys), false); } catch (Exception e) { throw new RuntimeException(e); } attrs.addAll(keys); } FindSCU(); final void setPriority(int priority); final void setInformationModel(InformationModel model, String[] tss,
... |
@Test public void testReconfigure() throws Exception { Device d1 = createDevice("test", "AET1"); Device d2 = createDevice("test", "AET2"); d1.reconfigure(d2); ApplicationEntity ae = d1.getApplicationEntity("AET2"); assertNotNull(ae); List<Connection> conns = ae.getConnections(); assertEquals(1, conns.size()); } | public void reconfigure(Device from) throws IOException, GeneralSecurityException { setDeviceAttributes(from); reconfigureConnections(from); reconfigureApplicationEntities(from); reconfigureWebApplications(from); reconfigureKeycloakClients(from); reconfigureDeviceExtensions(from); } | Device implements Serializable { public void reconfigure(Device from) throws IOException, GeneralSecurityException { setDeviceAttributes(from); reconfigureConnections(from); reconfigureApplicationEntities(from); reconfigureWebApplications(from); reconfigureKeycloakClients(from); reconfigureDeviceExtensions(from); } } | Device implements Serializable { public void reconfigure(Device from) throws IOException, GeneralSecurityException { setDeviceAttributes(from); reconfigureConnections(from); reconfigureApplicationEntities(from); reconfigureWebApplications(from); reconfigureKeycloakClients(from); reconfigureDeviceExtensions(from); } Dev... | Device implements Serializable { public void reconfigure(Device from) throws IOException, GeneralSecurityException { setDeviceAttributes(from); reconfigureConnections(from); reconfigureApplicationEntities(from); reconfigureWebApplications(from); reconfigureKeycloakClients(from); reconfigureDeviceExtensions(from); } Dev... | Device implements Serializable { public void reconfigure(Device from) throws IOException, GeneralSecurityException { setDeviceAttributes(from); reconfigureConnections(from); reconfigureApplicationEntities(from); reconfigureWebApplications(from); reconfigureKeycloakClients(from); reconfigureDeviceExtensions(from); } Dev... |
@Test public void testEncodeGermanPersonName() { assertArrayEquals(GERMAN_PERSON_NAME_BYTE, iso8859_1().encode(GERMAN_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeGermanPersonName() { assertEquals(GERMAN_PERSON_NAME, iso8859_1().decode(GERMAN_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeFrenchPersonName() { assertArrayEquals(FRENCH_PERSON_NAME_BYTE, iso8859_1().encode(FRENCH_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeFrenchPersonName() { assertEquals(FRENCH_PERSON_NAME, iso8859_1().decode(FRENCH_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeRussianPersonName() { assertArrayEquals(RUSSIAN_PERSON_NAME_BYTE, iso8859_5().encode(RUSSIAN_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeRussianPersonName() { assertEquals(RUSSIAN_PERSON_NAME, iso8859_5().decode(RUSSIAN_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeArabicPersonName() { assertArrayEquals(ARABIC_PERSON_NAME_BYTE, iso8859_6().encode(ARABIC_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeArabicPersonName() { assertEquals(ARABIC_PERSON_NAME, iso8859_6().decode(ARABIC_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeGreekPersonName() { assertArrayEquals(GREEK_PERSON_NAME_BYTE, iso8859_7().encode(GREEK_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void test() { Attributes dataset = new Attributes(); dataset.setString(Tag.SpecificCharacterSet, VR.CS, null, "ISO 2022 IR 87"); dataset.setString(Tag.ImageType, VR.CS, "DERIVED", "PRIMARY"); Attributes item = new Attributes(2); dataset.newSequence(Tag.SourceImageSequence, 1).add(item); item.setString(Tag.... | public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAttribute(tag, vr, value, cs, attrs); return ... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... |
@Test public void testDecodeGreekPersonName() { assertEquals(GREEK_PERSON_NAME, iso8859_7().decode(GREEK_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeHebrewPersonName() { assertArrayEquals(HEBREW_PERSON_NAME_BYTE, iso8859_8().encode(HEBREW_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeHebrewPersonName() { assertEquals(HEBREW_PERSON_NAME, iso8859_8().decode(HEBREW_PERSON_NAME_BYTE)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeJapanesePersonNameASCII() { assertArrayEquals(JAPANESE_PERSON_NAME_ASCII_BYTES, jisX0208().encode(JAPANESE_PERSON_NAME_ASCII, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeJapanesePersonNameASCII() { assertEquals(JAPANESE_PERSON_NAME_ASCII, jisX0208().decode(JAPANESE_PERSON_NAME_ASCII_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeJapanesePersonNameJISX0201() { assertArrayEquals(JAPANESE_PERSON_NAME_JISX0201_BYTES, jisX0201().encode(JAPANESE_PERSON_NAME_JISX0201, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeJapanesePersonNameJISX0201() { assertEquals(JAPANESE_PERSON_NAME_JISX0201, jisX0201().decode(JAPANESE_PERSON_NAME_JISX0201_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeKoreanPersonName() { assertArrayEquals(KOREAN_PERSON_NAME_BYTES, ksx1001().encode(KOREAN_PERSON_NAME, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeKoreanPersonName() { assertEquals(KOREAN_PERSON_NAME, ksx1001().decode(KOREAN_PERSON_NAME_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeKoreanLongText() { assertArrayEquals(KOREAN_LONG_TEXT_BYTES, ksx1001().encode(KOREAN_LONG_TEXT, LT_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testInfinityAndNaN() { Attributes dataset = new Attributes(); dataset.setDouble(Tag.SelectorFDValue, VR.FD, Double.NEGATIVE_INFINITY, Double.NaN, Double.POSITIVE_INFINITY); dataset.setFloat(Tag.SelectorFLValue, VR.FL, Float.NEGATIVE_INFINITY, Float.NaN, Float.POSITIVE_INFINITY); StringWriter writer = ... | public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAttribute(tag, vr, value, cs, attrs); return ... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... | JSONWriter implements DicomInputHandler { public void write(Attributes attrs) { final SpecificCharacterSet cs = attrs.getSpecificCharacterSet(); gen.writeStartObject(); try { attrs.accept(new Attributes.Visitor(){ @Override public boolean visit(Attributes attrs, int tag, VR vr, Object value) throws Exception { writeAtt... |
@Test public void testDecodeKoreanLongText() { assertEquals(KOREAN_LONG_TEXT, ksx1001().decode(KOREAN_LONG_TEXT_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeChinesePersonNameGB2312() { assertArrayEquals(CHINESE_PERSON_NAME_GB2312_BYTES, gb2312().encode(CHINESE_PERSON_NAME_GB2312, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeChinesePersonNameGB2312() { assertEquals(CHINESE_PERSON_NAME_GB2312, gb2312().decode(CHINESE_PERSON_NAME_GB2312_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeChineseLongTextGB2312() { assertArrayEquals(CHINESE_LONG_TEXT_GB2312_BYTES, gb2312().encode(CHINESE_LONG_TEXT_GB2312, LT_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeChineseLongTextGB2312() { assertEquals(CHINESE_LONG_TEXT_GB2312, gb2312().decode(CHINESE_LONG_TEXT_GB2312_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeChinesePersonNameUTF8() { assertArrayEquals(CHINESE_PERSON_NAME_UTF8_BYTES, utf8().encode(CHINESE_PERSON_NAME_UTF8, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeChinesePersonNameUTF8() { assertEquals(CHINESE_PERSON_NAME_UTF8, utf8().decode(CHINESE_PERSON_NAME_UTF8_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeChinesePersonNameGB18030() { assertArrayEquals(CHINESE_PERSON_NAME_GB18030_BYTES, gb18030().encode(CHINESE_PERSON_NAME_GB18030, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testDecodeChinesePersonNameGB18030() { assertEquals(CHINESE_PERSON_NAME_GB18030, gb18030().decode(CHINESE_PERSON_NAME_GB18030_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testEncodeChinesePersonNameGBK() { assertArrayEquals(CHINESE_PERSON_NAME_GB18030_BYTES, gbk().encode(CHINESE_PERSON_NAME_GB18030, PN_DELIMS)); } | public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... | SpecificCharacterSet { public byte[] encode(String val, String delimiters) { return codecs[0].encode(val); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String c... |
@Test public void testPersist() throws Exception { try { config.removeDevice("Test-Device-1", null); } catch (ConfigurationNotFoundException e) {} Device device = createDevice("Test-Device-1", "TEST1^DCM4CHE"); config.persist(device, null); HL7Application app = hl7Ext.findHL7Application("TEST1^DCM4CHE"); assertEquals(2... | @Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7Ext = device.getDeviceExtension(HL7DeviceExtension.class); return hl7Ext.getHL7Application(n... | LdapHL7Configuration extends LdapDicomConfigurationExtension implements HL7Configuration { @Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7E... | LdapHL7Configuration extends LdapDicomConfigurationExtension implements HL7Configuration { @Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7E... | LdapHL7Configuration extends LdapDicomConfigurationExtension implements HL7Configuration { @Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7E... | LdapHL7Configuration extends LdapDicomConfigurationExtension implements HL7Configuration { @Override public HL7Application findHL7Application(String name) throws ConfigurationException { Device device = config.findDevice( "(&(objectclass=hl7Application)(hl7ApplicationName=" + name + "))", name); HL7DeviceExtension hl7E... |
@Test public void testDecodeChinesePersonNameGBK() { assertEquals(CHINESE_PERSON_NAME_GB18030, gbk().decode(CHINESE_PERSON_NAME_GB18030_BYTES)); } | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void testDecodeJISX0201EdgeCases() { byte[][] edgeCases = new byte[][] { {}, { 0x33, 0x43 }, { 0x33, 0x1b }, { 0x1b, 0x24, 0x28 }, { 0x1b, 0x24, 0x28, 0x55 }, { 0x1b, 0x24, 0x28, 0x44 }, { 0x1b, 0x24, 0x28, 0x44, 0x55 }, { 0x1b, 0x24, 0x29 }, { 0x1b, 0x24, 0x29, 0x41 }, { 0x1b, 0x24, 0x29, 0x41, 0x55 }, { ... | public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); } | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... | SpecificCharacterSet { public String decode(byte[] val) { return codecs[0].decode(val, 0, val.length); } protected SpecificCharacterSet(Codec[] codecs, String... codes); static SpecificCharacterSet getDefaultCharacterSet(); static void setDefaultCharacterSet(String code); static void setCharsetNameMapping(String code,... |
@Test public void pidsOfTest_faking_duplicate_by_using_same_PID_but_different_issuer() { Attributes rootWithMainId = createIdWithNS(NS); rootWithMainId.newSequence(OtherPatientIDsSequence, 0); Sequence other = rootWithMainId.getSequence(OtherPatientIDsSequence); Attributes otherPatientId = otherPatientIds("other_ns"); ... | public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids = new HashSet<ID... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... |
@Test public void no_main_id_returns_all() { Attributes rootWithMainId = createIdWithNS(NS); rootWithMainId.newSequence(OtherPatientIDsSequence, 0); Sequence other = rootWithMainId.getSequence(OtherPatientIDsSequence); Attributes otherPatientId = otherPatientIds("other_ns"); other.add(otherPatientId); Set<IDWithIssuer>... | public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids = new HashSet<ID... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... | IDWithIssuer { public static Set<IDWithIssuer> pidsOf(Attributes attrs) { IDWithIssuer pid = IDWithIssuer.pidOf(attrs); Sequence opidseq = attrs.getSequence(Tag.OtherPatientIDsSequence); if (opidseq == null) if (pid == null) return Collections.emptySet(); else return Collections.singleton(pid); Set<IDWithIssuer> pids =... |
@Test public void testValidateDICOMDIR() throws Exception { IOD iod = IOD.load("resource:dicomdir-iod.xml"); Attributes attrs = readDataset("DICOMDIR"); ValidationResult result = attrs.validate(iod); assertTrue(result.isValid()); } | public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = new File(uri).toURI().toString(); } IOD i... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... |
@Test public void testValidateCode() throws Exception { IOD iod = IOD.load("resource:code-iod.xml"); Attributes attrs = new Attributes(2); attrs.newSequence(Tag.ConceptNameCodeSequence, 1).add( new Code("CV-9991", "99DCM4CHE", null, "CM-9991").toItem()); Attributes contentNode = new Attributes(2); contentNode.newSequen... | public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = new File(uri).toURI().toString(); } IOD i... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... | IOD extends ArrayList<IOD.DataElement> { public static IOD load(String uri) throws IOException { if (uri.startsWith("resource:")) { try { uri = ResourceLocator.getResource(uri.substring(9), IOD.class); } catch (NullPointerException npe) { throw new FileNotFoundException(uri); } } else if (uri.indexOf(':') < 2) { uri = ... |
@Test public void testValueOf() { PersonName pn = new PersonName( "Adams^John Robert Quincy^^Rev.^B.A. M.Div."); assertEquals("Adams", pn.get(PersonName.Component.FamilyName)); assertEquals("John Robert Quincy", pn.get(PersonName.Component.GivenName)); assertEquals("Rev.", pn.get(PersonName.Component.NamePrefix)); asse... | public String get(Component c) { return get(Group.Alphabetic, c); } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); String toString(); String toString(Group g, boolean trim); String get(Component c); String get(Group g, Component c); void set(Component c, String s); void set(Gr... | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); String toString(); String toString(Group g, boolean trim); String get(Component c); String get(Group g, Component c); void set(Component c, String s); void set(Gr... |
@Test public void testValueOf2() { PersonName pn = new PersonName("Hong^Gildong=洪^吉洞=홍^길동"); assertEquals("Hong", pn.get(PersonName.Group.Alphabetic, PersonName.Component.FamilyName)); assertEquals("Gildong", pn.get(PersonName.Group.Alphabetic, PersonName.Component.GivenName)); assertEquals("洪", pn.get(PersonName.Group... | public String get(Component c) { return get(Group.Alphabetic, c); } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); } | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); String toString(); String toString(Group g, boolean trim); String get(Component c); String get(Group g, Component c); void set(Component c, String s); void set(Gr... | PersonName { public String get(Component c) { return get(Group.Alphabetic, c); } PersonName(); PersonName(String s); PersonName(String s, boolean lenient); String toString(); String toString(Group g, boolean trim); String get(Component c); String get(Group g, Component c); void set(Component c, String s); void set(Gr... |
@Test public void testToString() { PersonName pn = new PersonName(); pn.set(PersonName.Component.FamilyName, "Morrison-Jones"); pn.set(PersonName.Component.GivenName, "Susan"); pn.set(PersonName.Component.NameSuffix, "Ph.D., Chief Executive Officer"); assertEquals("Morrison-Jones^Susan^^^Ph.D., Chief Executive Officer"... | public String toString() { int totLen = 0; Group lastGroup = Group.Alphabetic; for (Group g : Group.values()) { Component lastCompOfGroup = Component.FamilyName; for (Component c : Component.values()) { String s = get(g, c); if (s != null) { totLen += s.length(); lastGroup = g; lastCompOfGroup = c; } } totLen += lastCo... | PersonName { public String toString() { int totLen = 0; Group lastGroup = Group.Alphabetic; for (Group g : Group.values()) { Component lastCompOfGroup = Component.FamilyName; for (Component c : Component.values()) { String s = get(g, c); if (s != null) { totLen += s.length(); lastGroup = g; lastCompOfGroup = c; } } tot... | PersonName { public String toString() { int totLen = 0; Group lastGroup = Group.Alphabetic; for (Group g : Group.values()) { Component lastCompOfGroup = Component.FamilyName; for (Component c : Component.values()) { String s = get(g, c); if (s != null) { totLen += s.length(); lastGroup = g; lastCompOfGroup = c; } } tot... | PersonName { public String toString() { int totLen = 0; Group lastGroup = Group.Alphabetic; for (Group g : Group.values()) { Component lastCompOfGroup = Component.FamilyName; for (Component c : Component.values()) { String s = get(g, c); if (s != null) { totLen += s.length(); lastGroup = g; lastCompOfGroup = c; } } tot... | PersonName { public String toString() { int totLen = 0; Group lastGroup = Group.Alphabetic; for (Group g : Group.values()) { Component lastCompOfGroup = Component.FamilyName; for (Component c : Component.values()) { String s = get(g, c); if (s != null) { totLen += s.length(); lastGroup = g; lastCompOfGroup = c; } } tot... |
@Test public void testToString() { ItemPointer ip = new ItemPointer(Tag.RequestAttributesSequence, 0); ValueSelector vs = new ValueSelector(Tag.StudyInstanceUID, null, 0, ip); assertEquals(XPATH, vs.toString()); } | @Override public String toString() { if (str == null) str = attributeSelector.toStringBuilder() .append("/Value[@number=\"") .append(valueIndex + 1) .append("\"]") .toString(); return str; } | ValueSelector implements Serializable { @Override public String toString() { if (str == null) str = attributeSelector.toStringBuilder() .append("/Value[@number=\"") .append(valueIndex + 1) .append("\"]") .toString(); return str; } } | ValueSelector implements Serializable { @Override public String toString() { if (str == null) str = attributeSelector.toStringBuilder() .append("/Value[@number=\"") .append(valueIndex + 1) .append("\"]") .toString(); return str; } ValueSelector(int tag, String privateCreator, int index, ItemPointer... itemPointers); V... | ValueSelector implements Serializable { @Override public String toString() { if (str == null) str = attributeSelector.toStringBuilder() .append("/Value[@number=\"") .append(valueIndex + 1) .append("\"]") .toString(); return str; } ValueSelector(int tag, String privateCreator, int index, ItemPointer... itemPointers); V... | ValueSelector implements Serializable { @Override public String toString() { if (str == null) str = attributeSelector.toStringBuilder() .append("/Value[@number=\"") .append(valueIndex + 1) .append("\"]") .toString(); return str; } ValueSelector(int tag, String privateCreator, int index, ItemPointer... itemPointers); V... |
@Test public void testRegisterAETitle() throws Exception { config.unregisterAETitle("TEST-AET1"); assertTrue(config.registerAETitle("TEST-AET1")); assertFalse(config.registerAETitle("TEST-AET1")); assertTrue( Arrays.asList(config.listRegisteredAETitles()) .contains("TEST-AET1")); config.unregisterAETitle("TEST-AET1"); ... | @Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } } | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } } } | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } } LdapDicomConfiguration(); @SuppressWarn... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } } LdapDicomConfiguration(); @SuppressWarn... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized boolean registerAETitle(String aet) throws ConfigurationException { ensureConfigurationExists(); try { registerAET(aet); return true; } catch (AETitleAlreadyExistsException e) { return false; } } LdapDicomConfiguration(); @SuppressWarn... |
@Test public void testValueOf() { ValueSelector vs = ValueSelector.valueOf(XPATH); assertEquals(Tag.StudyInstanceUID, vs.tag()); assertNull(vs.privateCreator()); assertEquals(0, vs.valueIndex()); assertEquals(1, vs.level()); ItemPointer ip = vs.itemPointer(0); assertEquals(Tag.RequestAttributesSequence, ip.sequenceTag)... | public static ValueSelector valueOf(String s) { int fromIndex = s.lastIndexOf("DicomAttribute"); try { return new ValueSelector(AttributeSelector.valueOf(s), AttributeSelector.selectNumber(s, fromIndex) - 1); } catch (Exception e) { throw new IllegalArgumentException(s); } } | ValueSelector implements Serializable { public static ValueSelector valueOf(String s) { int fromIndex = s.lastIndexOf("DicomAttribute"); try { return new ValueSelector(AttributeSelector.valueOf(s), AttributeSelector.selectNumber(s, fromIndex) - 1); } catch (Exception e) { throw new IllegalArgumentException(s); } } } | ValueSelector implements Serializable { public static ValueSelector valueOf(String s) { int fromIndex = s.lastIndexOf("DicomAttribute"); try { return new ValueSelector(AttributeSelector.valueOf(s), AttributeSelector.selectNumber(s, fromIndex) - 1); } catch (Exception e) { throw new IllegalArgumentException(s); } } Valu... | ValueSelector implements Serializable { public static ValueSelector valueOf(String s) { int fromIndex = s.lastIndexOf("DicomAttribute"); try { return new ValueSelector(AttributeSelector.valueOf(s), AttributeSelector.selectNumber(s, fromIndex) - 1); } catch (Exception e) { throw new IllegalArgumentException(s); } } Valu... | ValueSelector implements Serializable { public static ValueSelector valueOf(String s) { int fromIndex = s.lastIndexOf("DicomAttribute"); try { return new ValueSelector(AttributeSelector.valueOf(s), AttributeSelector.selectNumber(s, fromIndex) - 1); } catch (Exception e) { throw new IllegalArgumentException(s); } } Valu... |
@Test public void testVrOf() { for (int i = 0; i < TAGS.length; i++) assertEquals(VRS[i], ElementDictionary.vrOf(TAGS[i], null)); } | public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionary(String priva... | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionary(String priva... |
@Test public void testKeywordOf() { for (int i = 0; i < TAGS.length; i++) assertEquals(KEYWORDS[i], ElementDictionary.keywordOf(TAGS[i], null)); } | public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionar... | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionar... |
@Test public void tagForKeyword() { for (int i = 0; i < KEYWORDS.length-1; i++) assertEquals(TAGS[i], ElementDictionary.tagForKeyword(KEYWORDS[i], null)); } | public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary... | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary... |
@Test public void testPrivateVrOf() { for (int i = 0; i < SIEMENS_CSA_HEADER_TAGS.length; i++) assertEquals(SIEMENS_CSA_HEADER_VRS[i], ElementDictionary.vrOf(SIEMENS_CSA_HEADER_TAGS[i], SIEMENS_CSA_HEADER)); for (int i = 0; i < SIEMENS_CSA_NON_IMAGE_TAGS.length; i++) assertEquals(SIEMENS_CSA_NON_IMAGE_VRS[i], ElementDi... | public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionary(String priva... | ElementDictionary { public static VR vrOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).vrOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionary(String priva... |
@Test public void testPrivateKeywordOf() { for (int i = 0; i < SIEMENS_CSA_HEADER_TAGS.length; i++) assertEquals(SIEMENS_CSA_HEADER_KEYWORDS[i], ElementDictionary.keywordOf( SIEMENS_CSA_HEADER_TAGS[i], SIEMENS_CSA_HEADER)); for (int i = 0; i < SIEMENS_CSA_NON_IMAGE_TAGS.length; i++) assertEquals(SIEMENS_CSA_NON_IMAGE_K... | public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionar... | ElementDictionary { public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary getElementDictionar... |
@Test public void tagPrivateForKeyword() { for (int i = 0; i < SIEMENS_CSA_HEADER_KEYWORDS.length; i++) assertEquals(SIEMENS_CSA_HEADER_TAGS[i], ElementDictionary.tagForKeyword( SIEMENS_CSA_HEADER_KEYWORDS[i], SIEMENS_CSA_HEADER)); for (int i = 0; i < SIEMENS_CSA_NON_IMAGE_KEYWORDS.length; i++) assertEquals(SIEMENS_CSA... | public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); } | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary... | ElementDictionary { public static int tagForKeyword(String keyword, String privateCreatorID) { return getElementDictionary(privateCreatorID).tagForKeyword(keyword); } protected ElementDictionary(String privateCreator, Class<?> tagClass); static ElementDictionary getStandardElementDictionary(); static ElementDictionary... |
@Test public void testMatches() { assertTrue(StringUtils.matches("aBcD", "aBcD", false, false)); assertFalse(StringUtils.matches("aBcD", "abCd", false, false)); assertTrue(StringUtils.matches("aBcD", "abCd", false, true)); assertFalse(StringUtils.matches("aBcD", "ab*", false, false)); assertTrue(StringUtils.matches("aB... | public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase) { if (key == null || key.isEmpty()) return true; if (s == null || s.isEmpty()) return matchNullOrEmpty; return containsWildCard(key) ? compilePattern(key, ignoreCase).matcher(s).matches() : ignoreCase ? key.equalsIgnoreCas... | StringUtils { public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase) { if (key == null || key.isEmpty()) return true; if (s == null || s.isEmpty()) return matchNullOrEmpty; return containsWildCard(key) ? compilePattern(key, ignoreCase).matcher(s).matches() : ignoreCase ? key.e... | StringUtils { public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase) { if (key == null || key.isEmpty()) return true; if (s == null || s.isEmpty()) return matchNullOrEmpty; return containsWildCard(key) ? compilePattern(key, ignoreCase).matcher(s).matches() : ignoreCase ? key.e... | StringUtils { public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase) { if (key == null || key.isEmpty()) return true; if (s == null || s.isEmpty()) return matchNullOrEmpty; return containsWildCard(key) ? compilePattern(key, ignoreCase).matcher(s).matches() : ignoreCase ? key.e... | StringUtils { public static boolean matches(String s, String key, boolean matchNullOrEmpty, boolean ignoreCase) { if (key == null || key.isEmpty()) return true; if (s == null || s.isEmpty()) return matchNullOrEmpty; return containsWildCard(key) ? compilePattern(key, ignoreCase).matcher(s).matches() : ignoreCase ? key.e... |
@Test public void testFormat() { Attributes attrs = new Attributes(); attrs.setString(Tag.ImageType, VR.CS, "ORIGINAL", "PRIMARY", "AXIAL"); attrs.setString(Tag.StudyDate, VR.DA, "20111012"); attrs.setString(Tag.StudyTime, VR.TM, "0930"); attrs.setString(Tag.StudyInstanceUID, VR.UI, "1.2.3"); attrs.setString(Tag.Series... | @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... |
@Test public void testFormatMD5() { Attributes attrs = new Attributes(); attrs.setString(Tag.StudyDate, VR.DA, "20111012"); attrs.setString(Tag.StudyTime, VR.TM, "0930"); attrs.setString(Tag.StudyInstanceUID, VR.UI, "1.2.3"); attrs.setString(Tag.SeriesInstanceUID, VR.UI, "1.2.3.4"); attrs.setString(Tag.SOPInstanceUID, ... | @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... |
@Test public void testPersist() throws Exception { try { config.removeDevice("Test-Device-1", null); } catch (ConfigurationNotFoundException e) {} Device device = createDevice("Test-Device-1", "TEST-AET1"); config.persist(device, null); ApplicationEntity ae = config.findApplicationEntity("TEST-AET1"); assertFalse(ae.is... | @Override public synchronized ConfigurationChanges persist(Device device, EnumSet<Option> options) throws ConfigurationException { ensureConfigurationExists(); String deviceName = device.getDeviceName(); String deviceDN = deviceRef(deviceName); boolean rollback = false; ArrayList<String> destroyDNs = new ArrayList<>();... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized ConfigurationChanges persist(Device device, EnumSet<Option> options) throws ConfigurationException { ensureConfigurationExists(); String deviceName = device.getDeviceName(); String deviceDN = deviceRef(deviceName); boolean rollback = f... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized ConfigurationChanges persist(Device device, EnumSet<Option> options) throws ConfigurationException { ensureConfigurationExists(); String deviceName = device.getDeviceName(); String deviceDN = deviceRef(deviceName); boolean rollback = f... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized ConfigurationChanges persist(Device device, EnumSet<Option> options) throws ConfigurationException { ensureConfigurationExists(); String deviceName = device.getDeviceName(); String deviceDN = deviceRef(deviceName); boolean rollback = f... | LdapDicomConfiguration implements DicomConfiguration { @Override public synchronized ConfigurationChanges persist(Device device, EnumSet<Option> options) throws ConfigurationException { ensureConfigurationExists(); String deviceName = device.getDeviceName(); String deviceDN = deviceRef(deviceName); boolean rollback = f... |
@Test public void testFormatRND() { assertTrue(ASSERT_PATTERN_RND.matcher( new AttributesFormat(TEST_PATTERN_RND).format(new Attributes())).matches()); } | @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... |
@Test public void testOffset() { Attributes attrs = new Attributes(); attrs.setString(Tag.SeriesNumber, VR.IS, "1"); attrs.setString(Tag.InstanceNumber, VR.IS, "2"); assertEquals("101/1", new AttributesFormat(TEST_PATTERN_OFFSET).format(attrs)); } | @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); } | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... | AttributesFormat extends Format { @Override public StringBuffer format(Object obj, StringBuffer result, FieldPosition pos) { return format.format(toArgs((Attributes) obj), result, pos); } AttributesFormat(String pattern); static AttributesFormat valueOf(String s); @Override StringBuffer format(Object obj, StringBuffer ... |
@Test public void testFormatDA() { assertEquals("19700101", DateUtils.formatDA(tz, new Date(0))); } | public static String formatDA(TimeZone tz, Date date) { return formatDA(tz, date, new StringBuilder(8)).toString(); } | DateUtils { public static String formatDA(TimeZone tz, Date date) { return formatDA(tz, date, new StringBuilder(8)).toString(); } } | DateUtils { public static String formatDA(TimeZone tz, Date date) { return formatDA(tz, date, new StringBuilder(8)).toString(); } } | DateUtils { public static String formatDA(TimeZone tz, Date date) { return formatDA(tz, date, new StringBuilder(8)).toString(); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); ... | DateUtils { public static String formatDA(TimeZone tz, Date date) { return formatDA(tz, date, new StringBuilder(8)).toString(); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); ... |
@Test public void testFormatTM() { assertEquals("020000.000", DateUtils.formatTM(tz, new Date(0))); } | public static String formatTM(TimeZone tz, Date date) { return formatTM(tz, date, new DatePrecision()); } | DateUtils { public static String formatTM(TimeZone tz, Date date) { return formatTM(tz, date, new DatePrecision()); } } | DateUtils { public static String formatTM(TimeZone tz, Date date) { return formatTM(tz, date, new DatePrecision()); } } | DateUtils { public static String formatTM(TimeZone tz, Date date) { return formatTM(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... | DateUtils { public static String formatTM(TimeZone tz, Date date) { return formatTM(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... |
@Test public void testFormatDT() { assertEquals("19700101020000.000", DateUtils.formatDT(tz, new Date(0))); } | public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... |
@Test public void testFormatDTwithTZ() { assertEquals("19700101020000.000+0200", DateUtils.formatDT(tz, new Date(0), new DatePrecision(Calendar.MILLISECOND, true))); } | public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } } | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... | DateUtils { public static String formatDT(TimeZone tz, Date date) { return formatDT(tz, date, new DatePrecision()); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static Strin... |
@Test public void testParseDA() { assertEquals(-2 * HOUR, DateUtils.parseDA(tz, "19700101").getTime()); } | public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... |
@Test public void testParseDAacrnema() { assertEquals(-2 * HOUR, DateUtils.parseDA(tz, "1970.01.01").getTime()); } | public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... |
@Test public void testParseDAceil() { assertEquals(DAY - 2 * HOUR - 1, DateUtils.parseDA(tz, "19700101", true).getTime()); } | public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } } | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... | DateUtils { public static Date parseDA(TimeZone tz, String s) { return parseDA(tz, s, false); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date); static String formatTM(TimeZone tz... |
@Test public void testParseTM() { DatePrecision precision = new DatePrecision(); assertEquals(0, DateUtils.parseTM(tz, "020000.000", precision).getTime()); assertEquals(Calendar.MILLISECOND, precision.lastField); } | public static Date parseTM(TimeZone tz, String s, DatePrecision precision) { return parseTM(tz, s, false, precision); } | DateUtils { public static Date parseTM(TimeZone tz, String s, DatePrecision precision) { return parseTM(tz, s, false, precision); } } | DateUtils { public static Date parseTM(TimeZone tz, String s, DatePrecision precision) { return parseTM(tz, s, false, precision); } } | DateUtils { public static Date parseTM(TimeZone tz, String s, DatePrecision precision) { return parseTM(tz, s, false, precision); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date)... | DateUtils { public static Date parseTM(TimeZone tz, String s, DatePrecision precision) { return parseTM(tz, s, false, precision); } static String formatDA(TimeZone tz, Date date); static StringBuilder formatDA(TimeZone tz, Date date,
StringBuilder toAppendTo); static String formatTM(TimeZone tz, Date date)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.