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 testReset() throws Throwable { Profiler profiler = new Profiler(); profiler.reset(); assertEquals(0, profiler.events.size(), "profiler.events.size()"); }
public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); }
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); void reset(); @SuppressWarnings("unchecked") synchronized void checkPoint(String detail); long getElapsed(); long getElapsedInMillis(); long getPartial(); long getPartialInMillis(); v...
Profiler implements Loggeable { public void reset() { start = partial = System.nanoTime(); events = new LinkedHashMap<>(); } Profiler(); void reset(); @SuppressWarnings("unchecked") synchronized void checkPoint(String detail); long getElapsed(); long getElapsedInMillis(); long getPartial(); long getPartialInMillis(); v...
@Test public void testRecyclable() { long maxCycles = 1000; Recyclable<Object> r = new Recyclable<>(Object::new, maxCycles); Object o = r.get(); for (int i=0; i < maxCycles; i++) { assertEquals(o, r.get(), "i=" + i); } assertNotEquals(o, r.get()); }
public Recyclable(Supplier<T> supplier, long maxCycles) { this.supplier = supplier; this.maxCycles = maxCycles; }
Recyclable implements Supplier<T> { public Recyclable(Supplier<T> supplier, long maxCycles) { this.supplier = supplier; this.maxCycles = maxCycles; } }
Recyclable implements Supplier<T> { public Recyclable(Supplier<T> supplier, long maxCycles) { this.supplier = supplier; this.maxCycles = maxCycles; } Recyclable(Supplier<T> supplier, long maxCycles); }
Recyclable implements Supplier<T> { public Recyclable(Supplier<T> supplier, long maxCycles) { this.supplier = supplier; this.maxCycles = maxCycles; } Recyclable(Supplier<T> supplier, long maxCycles); @Override T get(); }
Recyclable implements Supplier<T> { public Recyclable(Supplier<T> supplier, long maxCycles) { this.supplier = supplier; this.maxCycles = maxCycles; } Recyclable(Supplier<T> supplier, long maxCycles); @Override T get(); }
@Test public void testDump() throws Throwable { new SimpleMsg("tag", "Some Name", new SimpleMsg("inner-tag", "Inner Name", 100L)).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- <inner-tag name=\"Inner Name\">" + NL + "--||-- 100" + NL + "--||-- </inner-tag>" + NL + "--||--</tag>" + NL ...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDump1() throws Throwable { SimpleMsg[] msgContent = new SimpleMsg[0]; SimpleMsg simpleMsg = new SimpleMsg("inner-tag", "Inner Name", msgContent); SimpleMsg[] msgContent2 = new SimpleMsg[2]; msgContent2[0] = simpleMsg; msgContent2[1] = simpleMsg; new SimpleMsg("tag", "Some Name", msgContent2).dump(...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDump2() throws Throwable { SimpleMsg[] msgContent = new SimpleMsg[0]; SimpleMsg[] msgContent2 = new SimpleMsg[3]; msgContent2[0] = new SimpleMsg("inner-tag1", "Inner Name1", "~@%&|K}Id]+l\\"); msgContent2[1] = new SimpleMsg("inner-tag2", "Inner Name2", (short) 100); msgContent2[2] = new SimpleMsg(...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testAppendMinTagBelow() { assertThrows(IllegalArgumentException.class, () -> { instance.append(0x00, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testDump3() throws Throwable { new SimpleMsg("tag", "Some Name", "~@%&|K}Id]+l\\").dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- ~@%&|K}Id]+l\\" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDump4() throws Throwable { SimpleMsg[] msgContent = new SimpleMsg[0]; new SimpleMsg("tag", "Some Name", msgContent).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentNull() throws Throwable { new SimpleMsg("tag", "Some Name", null).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\"/>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentNullByteArr() throws Throwable { new SimpleMsg("tag", "Some Name", null).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\"/>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentNullWithoutName() throws Throwable { new SimpleMsg("tag", null).dump(p, "--||--"); assertEquals( "--||--<tag/>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentWithoutName() throws Throwable { new SimpleMsg("tag", 100).dump(p, "--||--"); assertEquals( "--||--<tag>100</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentByteArr() throws Throwable { byte[] b = ISOUtil.hex2byte("3AF1"); new SimpleMsg("tag", "Some Name", b).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- 3AF1" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentByteArrWithoutName() throws Throwable { byte[] b = ISOUtil.hex2byte("f13a"); new SimpleMsg("tag", b).dump(p, "--||--"); assertEquals( "--||--<tag>F13A</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentBoolean() throws Throwable { new SimpleMsg("tag", "Some Name", true).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- true" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentShort() throws Throwable { new SimpleMsg("tag", "Some Name", (short)123).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- 123" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testAppendMinTagAbove() { assertThrows(IllegalArgumentException.class, () -> { instance.append(0xff, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testDumpContentLong() throws Throwable { new SimpleMsg("tag", "Some Name", -123L).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- -123" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentDouble() throws Throwable { new SimpleMsg("tag", "Some Name", -12.3).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- -12.3" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpContentDoubleWithoutName() throws Throwable { new SimpleMsg("tag", -12.3).dump(p, "--||--"); assertEquals( "--||--<tag>-12.3</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpInnerNull() throws Throwable { new SimpleMsg("tag", "Some Name", new SimpleMsg("inner-tag", "Inner Name", null)).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- <inner-tag name=\"Inner Name\"/>" + NL + "--||--</tag>" + NL ,os.toString()); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpInnerNulls() throws Throwable { SimpleMsg[] msgContent = new SimpleMsg[4]; new SimpleMsg("tag", "Some Name", msgContent).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- null" + NL + "--||-- null" + NL + "--||-- null" + NL + "--||-- null" + NL + "--||--</tag>" +...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpExceptionStackTrace() { Exception ex = new IllegalArgumentException("This value is illegal" , new IllegalStateException("Some illegal state") ); Loggeable msg = new SimpleMsg("unexpected-exception", ex); msg.dump(p, "--||--"); String res = os.toString(); assertThat(res, Matchers.startsWith("--...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpInnerCompositeAndNulls() throws Throwable { List<Loggeable> msgContent = new ArrayList<>(); msgContent.add(new SimpleMsg("inner-tag", "Inner Name", 100)); new SimpleMsg("tag", "Some Name", msgContent).dump(p, "--||--"); assertEquals( "--||--<tag name=\"Some Name\">" + NL + "--||-- <inner-tag n...
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test public void testDumpPrintStreamNull() throws Throwable { assertThrows(NullPointerException.class, () -> { new SimpleMsg("tag", "Some Name", 100L).dump(null, "--||--"); }); }
@Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else if (msgContent instanceof Collecti...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
SimpleMsg implements Loggeable { @Override public void dump(PrintStream p, String indent) { String inner = indent + " "; p.print(indent + "<" + tagName); if (msgName != null) p.print(" name=\"" + msgName + "\""); Collection cl = null; if (msgContent instanceof Object[]) cl = Arrays.asList((Object[]) msgContent); else i...
@Test void testShouldNotAttemptCloseOnNullPrintStream() { LogEventWriter writer = new TestLogEventWriter(); writer.setPrintStream(null); assertDoesNotThrow(writer::close); }
@Override public void setPrintStream(PrintStream p) { if (p == null) { close(); return; } if (this.p == p) return; if (this.p != null) close(); this.p = p; }
BaseLogEventWriter implements LogEventWriter { @Override public void setPrintStream(PrintStream p) { if (p == null) { close(); return; } if (this.p == p) return; if (this.p != null) close(); this.p = p; } }
BaseLogEventWriter implements LogEventWriter { @Override public void setPrintStream(PrintStream p) { if (p == null) { close(); return; } if (this.p == p) return; if (this.p != null) close(); this.p = p; } }
BaseLogEventWriter implements LogEventWriter { @Override public void setPrintStream(PrintStream p) { if (p == null) { close(); return; } if (this.p == p) return; if (this.p != null) close(); this.p = p; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent e...
BaseLogEventWriter implements LogEventWriter { @Override public void setPrintStream(PrintStream p) { if (p == null) { close(); return; } if (this.p == p) return; if (this.p != null) close(); this.p = p; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(LogEvent e...
@Test public void testClose() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); filterLogListener.close(); filterLogListener.close(); assertNull(filterLogListener.p, "filterLogListener.p"); }
public synchronized void close() { if (p != null) { p.close(); p = null; } }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); Str...
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); Str...
@Test public void testAppendInvalidByteLow() { assertThrows(IllegalArgumentException.class, () -> { instance.append(0x3f, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testClose1() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); filterLogListener.close(); assertNull(filterLogListener.p, "filterLogListener.p"); }
public synchronized void close() { if (p != null) { p.close(); p = null; } }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); Str...
FilterLogListener implements LogListener,Configurable { public synchronized void close() { if (p != null) { p.close(); p = null; } } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); Str...
@Test public void testConstructor() throws Throwable { PrintStream p = new PrintStream(new ByteArrayOutputStream(), true); FilterLogListener filterLogListener = new FilterLogListener(p); assertSame(p, filterLogListener.p, "filterLogListener.p"); assertEquals("info", filterLogListener.getPriority(), "filterLogListener.g...
public String getPriority() { return priority; }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String getPriority(); void setP...
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String getPriority(); void setP...
@Test public void testConstructor1() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); assertNotNull(filterLogListener.p, "filterLogListener.p"); assertEquals("info", filterLogListener.getPriority(), "filterLogListener.getPriority()"); }
public String getPriority() { return priority; }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String getPriority(); void setP...
FilterLogListener implements LogListener,Configurable { public String getPriority() { return priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String getPriority(); void setP...
@Test public void testLog() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); filterLogListener.close(); LogEvent result = filterLogListener.log(null); assertNull(result, "result"); }
@Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("</log>"); p.flush(); } return ev; }
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
@Test public void testLog1() throws Throwable { LogEvent ev = new LogEvent(new BASE24TCPChannel(), "testFilterLogListenerTag", ""); FilterLogListener filterLogListener = new FilterLogListener(); LogEvent result = filterLogListener.log(ev); assertSame(ev, result, "result"); assertNotNull(filterLogListener.p, "filterLogL...
@Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("</log>"); p.flush(); } return ev; }
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
FilterLogListener implements LogListener,Configurable { @Override public synchronized LogEvent log(LogEvent ev) { if (p != null && permitLogging(ev.getTag())) { Date d = new Date(); p.println( "<log realm=\"" + ev.getRealm() + "\" at=\"" + d.toString() + "." + d.getTime() % 1000 + "\">" ); ev.dump(p, " "); p.println("<...
@Test public void testPermitLogging() throws Throwable { boolean result = new FilterLogListener().permitLogging("info"); assertTrue(result, "result"); }
public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
@Test public void testPermitLogging1() throws Throwable { boolean result = new FilterLogListener().permitLogging("trace"); assertFalse(result, "result"); }
public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
@Test public void testPermitLogging3() throws Throwable { boolean result = new FilterLogListener().permitLogging("testFilterLogListenerTagLevel"); assertTrue(result, "result"); }
public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
@Test public void testPermitLoggingThrowsNullPointerException() throws Throwable { try { new FilterLogListener().permitLogging(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull(ex.getMessage(), "ex.getMessage()"); } }
public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
FilterLogListener implements LogListener,Configurable { public boolean permitLogging(String tagLevel) { Integer i = LEVELS.get(tagLevel); if (i == null) i = LEVELS.get(Log.INFO); Integer j = LEVELS.get(priority); return i >= j; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Co...
@Test public void testSetConfiguration() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(); Configuration cfg = new SimpleConfiguration(); filterLogListener.setConfiguration(cfg); assertEquals("info", filterLogListener.getPriority(), "filterLogListener.getPriority()"); }
@Override public void setConfiguration (Configuration cfg) throws ConfigurationException { try { String log_priority = cfg.get("priority"); if ( log_priority != null && !log_priority.trim().equals("") && LEVELS.containsKey(log_priority) ) { priority = log_priority; } } catch (Exception e) { throw new ConfigurationExcep...
FilterLogListener implements LogListener,Configurable { @Override public void setConfiguration (Configuration cfg) throws ConfigurationException { try { String log_priority = cfg.get("priority"); if ( log_priority != null && !log_priority.trim().equals("") && LEVELS.containsKey(log_priority) ) { priority = log_priority...
FilterLogListener implements LogListener,Configurable { @Override public void setConfiguration (Configuration cfg) throws ConfigurationException { try { String log_priority = cfg.get("priority"); if ( log_priority != null && !log_priority.trim().equals("") && LEVELS.containsKey(log_priority) ) { priority = log_priority...
FilterLogListener implements LogListener,Configurable { @Override public void setConfiguration (Configuration cfg) throws ConfigurationException { try { String log_priority = cfg.get("priority"); if ( log_priority != null && !log_priority.trim().equals("") && LEVELS.containsKey(log_priority) ) { priority = log_priority...
FilterLogListener implements LogListener,Configurable { @Override public void setConfiguration (Configuration cfg) throws ConfigurationException { try { String log_priority = cfg.get("priority"); if ( log_priority != null && !log_priority.trim().equals("") && LEVELS.containsKey(log_priority) ) { priority = log_priority...
@Test public void testAppendInvalidByteHigh() { assertThrows(IllegalArgumentException.class, () -> { instance.append(0x9f, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testSetPrintStream() throws Throwable { PrintStream p = new PrintStream(new ByteArrayOutputStream()); FilterLogListener filterLogListener = new FilterLogListener(); filterLogListener.setPrintStream(p); assertSame(p, filterLogListener.p, "filterLogListener.p"); }
public synchronized void setPrintStream(PrintStream p) { this.p = p; }
FilterLogListener implements LogListener,Configurable { public synchronized void setPrintStream(PrintStream p) { this.p = p; } }
FilterLogListener implements LogListener,Configurable { public synchronized void setPrintStream(PrintStream p) { this.p = p; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public synchronized void setPrintStream(PrintStream p) { this.p = p; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String ge...
FilterLogListener implements LogListener,Configurable { public synchronized void setPrintStream(PrintStream p) { this.p = p; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String ge...
@Test public void testSetPriority() throws Throwable { FilterLogListener filterLogListener = new FilterLogListener(new PrintStream(new ByteArrayOutputStream(), true)); filterLogListener.setPriority("testFilterLogListenerPriority"); assertEquals("testFilterLogListenerPriority", filterLogListener.getPriority(), "filterLo...
public void setPriority(String priority) { this.priority = priority; }
FilterLogListener implements LogListener,Configurable { public void setPriority(String priority) { this.priority = priority; } }
FilterLogListener implements LogListener,Configurable { public void setPriority(String priority) { this.priority = priority; } FilterLogListener(); FilterLogListener(PrintStream p); }
FilterLogListener implements LogListener,Configurable { public void setPriority(String priority) { this.priority = priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String ge...
FilterLogListener implements LogListener,Configurable { public void setPriority(String priority) { this.priority = priority; } FilterLogListener(); FilterLogListener(PrintStream p); @Override void setConfiguration(Configuration cfg); synchronized void setPrintStream(PrintStream p); synchronized void close(); String ge...
@Test public void testCopy() throws Throwable { FSDMsg msg = new FSDMsg("testFSDMsgBasePath"); msg.copy("testFSDMsgFieldName", msg); assertEquals(1, msg.fields.size(), "msg.fields.size()"); assertNull(msg.fields.get("testFSDMsgFieldName"), "msg.fields.get(\"testFSDMsgFieldName\")"); }
public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separat...
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separat...
@Test public void testCopyThrowsNullPointerException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); try { fSDMsg.copy("testFSDMsgFieldName", null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { ...
public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separat...
FSDMsg implements Loggeable, Cloneable { public void copy (String fieldName, FSDMsg msg) { fields.put (fieldName, msg.get (fieldName)); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separat...
@Test public void testDump() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); fSDMsg.copy("testFSDMsgFieldName", new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema")); byte[] h = new byte[3]; fSDMsg.setHeader(h); fSDMsg.dump(new PrintStream(new ByteArrayOutputStream(), true, "UTF-16"), "testFSDM...
@Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fields.get (f), inner); p.println (indent + ...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
@Test public void testDump2() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); fSDMsg.dump(new PrintStream(new ByteArrayOutputStream(), true, "UTF-16"), "testFSDMsgIndent"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
@Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fields.get (f), inner); p.println (indent + ...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
@Test public void testDumpThrowsNullPointerException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.dump(null, "testFSDMsgIndent"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(),...
@Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fields.get (f), inner); p.println (indent + ...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
FSDMsg implements Loggeable, Cloneable { @Override public void dump (PrintStream p, String indent) { String inner = indent + " "; p.println (indent + "<fsdmsg schema='" + basePath + baseSchema + "'>"); if (header != null) { append (p, "header", getHexHeader(), inner); } for (String f :fields.keySet()) append (p, f, fie...
@Test public void testGet() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); String result = fSDMsg.get("testFSDMsgFieldName"); assertNull(result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet10() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.get("testFSDMsgId", "AD", 100, null, null); assertEquals(" ", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet11() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.get("testFSDMsgId", "Kv", 100, null, null); assertEquals("", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testAppendFixedTagOneMinTag() { instance = BUILDER_FT1.build(); instance.append(0x00, new byte[0]); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testGet12() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); String result = fSDMsg.get("testFSDMsgId", "AD", 0, "testFSDMsgDefValue", null); assertEquals("", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet2() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.get("testFSDMsgId", "2C", 100, null, null); assertEquals("", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet3() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); fSDMsg.get("testFSDMsgId", "B", 100, "testFSDMsgDefValue", null); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet6() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); String result = fSDMsg.get("testFSDMsgId", " ", 100, "testFSDMsgDefValue", null); assertEquals("testFSDMsgDefValue", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGet8() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.get("testFSDMsgId", "Kv", 100, "testFSDMsgDefValue", null); assertEquals("testFSDMsgDefValue", result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()")...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetHeader() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); byte[] h = new byte[2]; fSDMsg.setHeader(h); byte[] result = fSDMsg.getHeader(); assertSame(h, result, "result"); assertEquals((byte) 0, h[0], "h[0]"); }
public byte[] getHeader () { return header; }
FSDMsg implements Loggeable, Cloneable { public byte[] getHeader () { return header; } }
FSDMsg implements Loggeable, Cloneable { public byte[] getHeader () { return header; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public byte[] getHeader () { return header; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char separator); void unsetSeparator(String...
FSDMsg implements Loggeable, Cloneable { public byte[] getHeader () { return header; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char separator); void unsetSeparator(String...
@Test public void testGetHexBytes() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); fSDMsg.set("testString", "testFSDMsgValue1"); byte[] result = fSDMsg.getHexBytes("testString"); assertEquals(8, result.length, "result.length"); assertEquals((byte) -2, result[0], "result[0]"); assertEquals(1, fSDMs...
public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSepara...
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSepara...
@Test public void testGetHexBytes1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); byte[] result = fSDMsg.getHexBytes("testFSDMsgName"); assertNull(result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSepara...
FSDMsg implements Loggeable, Cloneable { public byte[] getHexBytes (String name) { String s = get (name); return s == null ? null : ISOUtil.hex2byte (s); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSepara...
@Test public void testGetHexHeader() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); byte[] h = new byte[1]; fSDMsg.setHeader(h); String result = fSDMsg.getHexHeader(); assertEquals("", result, "result"); }
public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String...
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String...
@Test public void testGetHexHeader1() throws Throwable { String result = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema").getHexHeader(); assertEquals("", result, "result"); }
public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String...
FSDMsg implements Loggeable, Cloneable { public String getHexHeader () { return header != null ? ISOUtil.hexString (header).substring (2) : ""; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String...
@Test public void testAppendFixedTagOneMinTagBelow() { assertThrows(IllegalArgumentException.class, () -> { instance = BUILDER_FT1.build(); instance.append(-0x01, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testGetInt() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); fSDMsg.set("testString", "1"); int result = fSDMsg.getInt("testString"); assertEquals(1, result, "result"); assertEquals(1, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
@SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSc...
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSc...
@Test public void testGetInt1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); int result = fSDMsg.getInt("testFSDMsgName"); assertEquals(0, result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
@SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSc...
FSDMsg implements Loggeable, Cloneable { @SuppressWarnings("PMD.EmptyCatchBlock") public int getInt (String name) { int i = 0; try { i = Integer.parseInt (get (name)); } catch (Exception ignored) { } return i; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSc...
@SuppressWarnings("unchecked") @Test public void testGetMap() throws Throwable { LinkedHashMap result = (LinkedHashMap) new FSDMsg("testFSDMsgBasePath").getMap(); assertEquals(0, result.size(), "result.size()"); }
public Map getMap () { return fields; }
FSDMsg implements Loggeable, Cloneable { public Map getMap () { return fields; } }
FSDMsg implements Loggeable, Cloneable { public Map getMap () { return fields; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public Map getMap () { return fields; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char separator); void unsetSeparator(String separ...
FSDMsg implements Loggeable, Cloneable { public Map getMap () { return fields; } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char separator); void unsetSeparator(String separ...
@Test public void testGetSchemaThrowsMalformedURLException() throws Throwable { assertThrows(MalformedURLException.class, () -> { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); fSDMsg.getSchema(); }); }
protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
@Test public void testGetSchemaThrowsMalformedURLException1() throws Throwable { assertThrows(MalformedURLException.class, () -> { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); fSDMsg.getSchema("testFSDMsgMessage"); }); }
protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
@Test public void testGetSchemaThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { FSDMsg fSDMsg = new FSDMsg(null, "testFSDMsgBaseSchema"); fSDMsg.getSchema(); }); }
protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
@Test public void testGetSchemaThrowsNullPointerException1() throws Throwable { assertThrows(NullPointerException.class, () -> { FSDMsg fSDMsg = new FSDMsg(null, "testFSDMsgBaseSchema"); fSDMsg.getSchema("testFSDMsgMessage"); }); }
protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
FSDMsg implements Loggeable, Cloneable { protected Element getSchema () throws JDOMException, IOException { return getSchema (baseSchema); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String sepa...
@Test public void testGetThrowsISOException1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "NB", 0, "testFSDMsgDefValue", null); fail("Expected ISOException to be thrown"); } catch (ISOException ex) { assertEquals("invalid len 18/0", ex.getMessage(), "ex.getMess...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsNullPointerException1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); try { fSDMsg.get("testFSDMsgId", null, 100, "testFSDMsgDefValue", null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaV...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "3Ch", 100, "testFSDMsgDefValue", "3Ch"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("Invalid separator '3Ch'", ex.get...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testAppendFixedTagOneMaxTag() { instance = BUILDER_FT1.build(); instance.append(0xff, new byte[0]); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testGetThrowsRuntimeException12() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "testFSDMsgType", 100, null, "testFSDMsgType"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("Invalid separator 'testF...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException4() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "Ka`xc-3DywniD\"+9W\"Uh/mY~23E0(V)P_^sv )@", 100, null, "Ka`xc-3DywniD\"+9W\"Uh/mY~23E0(V)P_^sv )@"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeE...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException5() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "B]Z", 100, null, "B]Z"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("Invalid separator 'B]Z'", ex.getMessage(), "ex....
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException6() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "B]Z", 100, "testFSDMsgDefValue", "B]Z"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("Invalid separator 'B]Z'", ex.ge...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException7() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "B]Z", 0, "testFSDMsgDefValue", "B]Z"); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("field content=testFSDMsgDefValue ...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException8() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "Ka`xc-3DywniD\"+9W\"Uh/mY~23E0(V)P_^sv )@", 100, "testFSDMsgDefValue", "Ka`xc-3DywniD\"+9W\"Uh/mY~23E0(V)P_^sv )@"); fail("Expected RuntimeException to be thrown"); }...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsRuntimeException9() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "", 100, null, null); fail("Expected RuntimeException to be thrown"); } catch (RuntimeException ex) { assertEquals("String index out of range: 0", ex.getMessage(), "ex...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testGetThrowsStringIndexOutOfBoundsException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.get("testFSDMsgId", "", 100, "testFSDMsgDefValue", null); fail("Expected StringIndexOutOfBoundsException to be thrown"); } catch (StringIndexOutOfBoundsException ex) { asser...
protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0) == 'L') { lengthLength++; type = type.su...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
FSDMsg implements Loggeable, Cloneable { protected String get (String id, String type, int length, String defValue, String separator) throws ISOException { String value = fields.get (id); if (value == null) value = defValue == null ? "" : defValue; type = type.toUpperCase (); int lengthLength = 0; while (type.charAt(0)...
@Test public void testHasField() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); fSDMsg.readField(null, "testString", 0, "", null); boolean result = fSDMsg.hasField("testString"); assertTrue(result, "result"); assertEquals(1, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
public boolean hasField(String fieldName) { return fields.containsKey(fieldName); }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char ...
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char ...
@Test public void testHasField1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); boolean result = fSDMsg.hasField("testFSDMsgFieldName"); assertFalse(result, "result"); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); }
public boolean hasField(String fieldName) { return fields.containsKey(fieldName); }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char ...
FSDMsg implements Loggeable, Cloneable { public boolean hasField(String fieldName) { return fields.containsKey(fieldName); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBaseSchema(); void setCharset(Charset charset); void setSeparator(String separatorName, char ...
@Test public void testAppendFixedTagOneMaxTagAbove() { assertThrows(IllegalArgumentException.class, () -> { instance = BUILDER_FT1.build(); instance.append(0x100, new byte[0]); }); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testGetL3() { byte[] value = new byte[200]; byte[] result = tl.createTLVMsg(TEST_TAG1, value).getL(); assertArrayEquals(ISOUtil.hex2byte("81C8"), result); }
public byte[] getL() { if (lengthSize > 0) return getLengthArray(); if (value == null) return new byte[1]; BigInteger bi = BigInteger.valueOf(value.length); byte[] rBytes = bi.toByteArray(); if (value.length < 0x80) return rBytes; if (rBytes[0] > 0) rBytes = ISOUtil.concat(new byte[1], rBytes); rBytes[0] = (byte) (0x80...
TLVMsg implements Loggeable { public byte[] getL() { if (lengthSize > 0) return getLengthArray(); if (value == null) return new byte[1]; BigInteger bi = BigInteger.valueOf(value.length); byte[] rBytes = bi.toByteArray(); if (value.length < 0x80) return rBytes; if (rBytes[0] > 0) rBytes = ISOUtil.concat(new byte[1], rBy...
TLVMsg implements Loggeable { public byte[] getL() { if (lengthSize > 0) return getLengthArray(); if (value == null) return new byte[1]; BigInteger bi = BigInteger.valueOf(value.length); byte[] rBytes = bi.toByteArray(); if (value.length < 0x80) return rBytes; if (rBytes[0] > 0) rBytes = ISOUtil.concat(new byte[1], rBy...
TLVMsg implements Loggeable { public byte[] getL() { if (lengthSize > 0) return getLengthArray(); if (value == null) return new byte[1]; BigInteger bi = BigInteger.valueOf(value.length); byte[] rBytes = bi.toByteArray(); if (value.length < 0x80) return rBytes; if (rBytes[0] > 0) rBytes = ISOUtil.concat(new byte[1], rBy...
TLVMsg implements Loggeable { public byte[] getL() { if (lengthSize > 0) return getLengthArray(); if (value == null) return new byte[1]; BigInteger bi = BigInteger.valueOf(value.length); byte[] rBytes = bi.toByteArray(); if (value.length < 0x80) return rBytes; if (rBytes[0] > 0) rBytes = ISOUtil.concat(new byte[1], rBy...
@Test public void testPack() throws Throwable { Element schema = new FSDMsg("testFSDMsgBasePath").toXML(); FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); StringBuilder sb = new StringBuilder(); fSDMsg.pack(schema, sb); assertEquals(0, fSDMsg.fields.size(), "fSDMsg.fields.size()"); assertEqual...
public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
@Test public void testPackThrowsMalformedURLException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); try { fSDMsg.pack(); fail("Expected MalformedURLException to be thrown"); } catch (MalformedURLException ex) { assertEquals(MalformedURLException.class, ex.getClass(), "ex...
public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
@Test public void testPackThrowsNullPointerException() throws Throwable { FSDMsg fSDMsg = new FSDMsg(null, "testFSDMsgBaseSchema"); try { fSDMsg.pack(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertEquals("basePath can not be null", ex.getMessage(), "ex.getMessage()"); a...
public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
@Test public void testPackThrowsNullPointerException1() throws Throwable { StringBuilder sb = new StringBuilder(); FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); try { fSDMsg.pack(null, sb); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVers...
public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); }
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
FSDMsg implements Loggeable, Cloneable { public String pack () throws JDOMException, IOException, ISOException { StringBuilder sb = new StringBuilder (); pack (getSchema (baseSchema), sb); return sb.toString (); } FSDMsg(String basePath); FSDMsg(String basePath, String baseSchema); String getBasePath(); String getBase...
@Test public void testRead() throws Throwable { ByteArrayInputStream bais = new ByteArrayInputStream(new byte[3]); FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); String result = fSDMsg.read(new InputStreamReader(bais), 1, "", null); assertEquals("\u0000", result, "result"); }
protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= expectSeparator ? getSeparator(separator) : ...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
@Test public void testRead1() throws Throwable { ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); String result = fSDMsg.read(new InputStreamReader(bais), 0, " ", null); assertEquals("", result, "result"); }
protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= expectSeparator ? getSeparator(separator) : ...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
@Test public void testRead2() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.read(is, 0, "2C", null); assertEquals("", result, "result"); }
protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= expectSeparator ? getSeparator(separator) : ...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
@Test public void testReadField() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); ByteArrayInputStream bais = new ByteArrayInputStream(new byte[1]); String result = fSDMsg.readField(new InputStreamReader(bais), "testFSDMsgFieldName", 1, " ", null); assertEquals(1, fSDMsg.fields.size(), "fSDMsg.fiel...
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testReadField1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); ByteArrayInputStream bais = new ByteArrayInputStream(new byte[1]); String result = fSDMsg.readField(new InputStreamReader(bais), "testFSDMsgFieldName", 1, "B", null); assertEquals("00", result); }
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testReadField2() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); String result = fSDMsg.readField(is, "testFSDMsgFieldName", 0, "2C", null); assertEquals(1, fSDMsg.fields.size(), "fSDMsg.fields.size()"); assertEquals("", result, "result"); }
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testAppendFixedTagOneByteHigh() { instance = BUILDER_FT1.build(); instance.append(0x9f, new byte[0]); }
public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); }
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
TLVList implements Serializable, Loggeable { public void append(TLVMsg tlv) throws NullPointerException { Objects.requireNonNull(tlv, "TLV message cannot be null"); tags.add(tlv); } TLVList(); void unpack(byte[] buf); List<TLVMsg> getTags(); Enumeration<TLVMsg> elements(); void unpack(byte[] buf, int offset); void appe...
@Test public void testReadFieldThrowsNullPointerException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); try { fSDMsg.readField(null, "testFSDMsgFieldName", 100, "2C", null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14))...
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testReadFieldTypeNullLengthToMuchThrowsEOFException1() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); InputStream is = new ByteArrayInputStream(new byte[1]); InputStreamReader r = new InputStreamReader(is); try { fSDMsg.readField(r, "testFSDMsgFieldName", 100, null, null); fail("...
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testReadFieldThrowsRuntimeException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); InputStream is = new ByteArrayInputStream(new byte[0]); InputStreamReader r = new InputStreamReader(is); try { fSDMsg.readField(r, "testFSDMsgFieldName", 100, "3Ch", "Ch"); fail("Expected Runtime...
protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fieldName, fieldValue); return fieldValue; }
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
FSDMsg implements Loggeable, Cloneable { protected String readField (InputStreamReader r, String fieldName, int len, String type, String separator) throws IOException { String fieldValue = read (r, len, type, separator); if (isBinary(type)) fieldValue = ISOUtil.hexString (fieldValue.getBytes (charset)); fields.put (fie...
@Test public void testReadThrowsEOFException() throws Throwable { assertThrows(EOFException.class, () -> { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath"); when(is.read(new char[] { (char) 00 })).thenReturn(Integer.valueOf(1)); when(is.read(new char[] { (char) 00 })).thenReturn(Integer.valueOf(1)); when(is.read(new ch...
protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= expectSeparator ? getSeparator(separator) : ...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
@Test public void testReadMoreThanInputThrowsEOFException() throws Throwable { FSDMsg fSDMsg = new FSDMsg("testFSDMsgBasePath", "testFSDMsgBaseSchema"); InputStream is = new ByteArrayInputStream(new byte[2]); InputStreamReader r = new InputStreamReader(is); try { fSDMsg.read(r, 100, null, null); fail("Expected EOFExcep...
protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= expectSeparator ? getSeparator(separator) : ...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...
FSDMsg implements Loggeable, Cloneable { protected String read (InputStreamReader r, int len, String type, String separator) throws IOException { StringBuilder sb = new StringBuilder(); char[] c = new char[1]; boolean expectSeparator = isSeparated(separator); boolean separated = expectSeparator; char separatorChar= exp...