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 testGetVErrorsThrowsNullPointerException1() throws Throwable { VErrorParser vErrorParser = new VErrorParser(); try { vErrorParser.getVErrors(new ISOVMsg(new ISOMsg(), null)); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { ass...
public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
@Test public void testGetVErrorsThrowsNullPointerException2() throws Throwable { VErrorParser vErrorParser = new VErrorParser(); ISOVField c = new ISOVField(new ISOField(), new ISOVError("testVErrorParserDescription")); c.addISOVError(null); try { vErrorParser.getVErrors(c); fail("Expected NullPointerException to be th...
public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
@Test public void testGetVErrorsThrowsNullPointerException3() throws Throwable { VErrorParser vErrorParser = new VErrorParser(); ISOVField c = new ISOVField(new ISOField(100, "testVErrorParserv")); c.addISOVError(null); try { vErrorParser.getVErrors(c); fail("Expected NullPointerException to be thrown"); } catch (NullP...
public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } }
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
VErrorParser implements LogSource, Loggeable { public Vector getVErrors( ISOComponent c ) { Vector v = new Vector(); _getErr( c, v, "" ); _errors = v; return _errors; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); v...
@Test public void testParseXMLErrorList() throws Throwable { String result = new VErrorParser().parseXMLErrorList(); assertEquals("", result, "result"); }
public String parseXMLErrorList(){ return ""; }
VErrorParser implements LogSource, Loggeable { public String parseXMLErrorList(){ return ""; } }
VErrorParser implements LogSource, Loggeable { public String parseXMLErrorList(){ return ""; } }
VErrorParser implements LogSource, Loggeable { public String parseXMLErrorList(){ return ""; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, String indent); void resetErrors(); }
VErrorParser implements LogSource, Loggeable { public String parseXMLErrorList(){ return ""; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, String indent); void resetErrors(); }
@Test public void testResetErrors() throws Throwable { VErrorParser vErrorParser = new VErrorParser(); vErrorParser.resetErrors(); }
public void resetErrors(){ _errors = null; }
VErrorParser implements LogSource, Loggeable { public void resetErrors(){ _errors = null; } }
VErrorParser implements LogSource, Loggeable { public void resetErrors(){ _errors = null; } }
VErrorParser implements LogSource, Loggeable { public void resetErrors(){ _errors = null; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, String indent); void resetErrors(); }
VErrorParser implements LogSource, Loggeable { public void resetErrors(){ _errors = null; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, String indent); void resetErrors(); }
@Test public void testSetLogger() throws Throwable { VErrorParser vErrorParser = new VErrorParser(); Logger logger = new Logger(); vErrorParser.setLogger(logger, "testVErrorParserRealm"); assertSame(logger, vErrorParser.logger, "vErrorParser.logger"); assertEquals("testVErrorParserRealm", vErrorParser.realm, "vErrorPar...
public void setLogger(Logger logger, String realm) { this.logger = logger; this.realm = realm; }
VErrorParser implements LogSource, Loggeable { public void setLogger(Logger logger, String realm) { this.logger = logger; this.realm = realm; } }
VErrorParser implements LogSource, Loggeable { public void setLogger(Logger logger, String realm) { this.logger = logger; this.realm = realm; } }
VErrorParser implements LogSource, Loggeable { public void setLogger(Logger logger, String realm) { this.logger = logger; this.realm = realm; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, S...
VErrorParser implements LogSource, Loggeable { public void setLogger(Logger logger, String realm) { this.logger = logger; this.realm = realm; } Vector getVErrors( ISOComponent c ); String parseXMLErrorList(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void dump(PrintStream p, S...
@Test public void testStartServiceThrowsNullPointerException() throws Throwable { QMUX qMUX = new QMUX(); qMUX.setState(0); try { qMUX.startService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"...
public void startService () { if (!listenerRegistered) { listenerRegistered = true; synchronized (sp) { Object[] pending = SpaceUtil.inpAll(sp, in); sp.addListener (in, this); for (Object o : pending) sp.out(in, o); } } }
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void startService () { if (!listenerRegistered) { listenerRegistered = true; synchronized (sp) { Object[] pending = SpaceUtil.inpAll(sp, in); sp.addListener (in, this); for (Object o : pending) sp.out(in, o); } } } }
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void startService () { if (!listenerRegistered) { listenerRegistered = true; synchronized (sp) { Object[] pending = SpaceUtil.inpAll(sp, in); sp.addListener (in, this); for (Object o : pending) sp.out(in, o); } } } Q...
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void startService () { if (!listenerRegistered) { listenerRegistered = true; synchronized (sp) { Object[] pending = SpaceUtil.inpAll(sp, in); sp.addListener (in, this); for (Object o : pending) sp.out(in, o); } } } Q...
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void startService () { if (!listenerRegistered) { listenerRegistered = true; synchronized (sp) { Object[] pending = SpaceUtil.inpAll(sp, in); sp.addListener (in, this); for (Object o : pending) sp.out(in, o); } } } Q...
@Test public void testThirdBitmapPack() throws Exception { byte[] b = ISOUtil.hex2byte("F23C04800AE00000"+"8000000000000108"+"63BC780000000010"); BitSet bs1 = ISOUtil.byte2BitSet(b, 0, 192); ISOBitMap bmap = new ISOBitMap(-1); bmap.setValue(bs1); IFA_BITMAP ifa = new IFA_BITMAP(24, "BITMAP"); byte[] b1 = ifa.pack(bmap)...
public byte[] pack (ISOComponent c) throws ISOException { BitSet b = (BitSet) c.getValue(); int len = getLength() >= 8 ? b.length()+62 >>6 <<3 : getLength(); return ISOUtil.hexString(ISOUtil.bitSet2byte (b, len)).getBytes(); }
IFA_BITMAP extends ISOBitMapPackager { public byte[] pack (ISOComponent c) throws ISOException { BitSet b = (BitSet) c.getValue(); int len = getLength() >= 8 ? b.length()+62 >>6 <<3 : getLength(); return ISOUtil.hexString(ISOUtil.bitSet2byte (b, len)).getBytes(); } }
IFA_BITMAP extends ISOBitMapPackager { public byte[] pack (ISOComponent c) throws ISOException { BitSet b = (BitSet) c.getValue(); int len = getLength() >= 8 ? b.length()+62 >>6 <<3 : getLength(); return ISOUtil.hexString(ISOUtil.bitSet2byte (b, len)).getBytes(); } IFA_BITMAP(); IFA_BITMAP(int len, String description)...
IFA_BITMAP extends ISOBitMapPackager { public byte[] pack (ISOComponent c) throws ISOException { BitSet b = (BitSet) c.getValue(); int len = getLength() >= 8 ? b.length()+62 >>6 <<3 : getLength(); return ISOUtil.hexString(ISOUtil.bitSet2byte (b, len)).getBytes(); } IFA_BITMAP(); IFA_BITMAP(int len, String description)...
IFA_BITMAP extends ISOBitMapPackager { public byte[] pack (ISOComponent c) throws ISOException { BitSet b = (BitSet) c.getValue(); int len = getLength() >= 8 ? b.length()+62 >>6 <<3 : getLength(); return ISOUtil.hexString(ISOUtil.bitSet2byte (b, len)).getBytes(); } IFA_BITMAP(); IFA_BITMAP(int len, String description)...
@Test public void testGetBytes() throws Exception { ISOMsg m = new ISOMsg("0800"); m.set (3, "000000"); m.set (52, "CAFEBABE".getBytes()); m.set ("63.2.3", "Field 63.2.3"); m.set ("63.2.4", m.getBytes (52)); assertEquals ("000000", m.getString (3)); assertEquals ("000000", new String(m.getBytes(3))); assertEquals ("CAF...
public byte[] getBytes (int fldno) { byte[] b = null; if (hasField (fldno)) { Object obj = getValue(fldno); if (obj instanceof String) b = ((String) obj).getBytes(ISOUtil.CHARSET); else if (obj instanceof byte[]) b = (byte[]) obj; } return b; }
ISOMsg extends ISOComponent implements Cloneable, Loggeable, Externalizable { public byte[] getBytes (int fldno) { byte[] b = null; if (hasField (fldno)) { Object obj = getValue(fldno); if (obj instanceof String) b = ((String) obj).getBytes(ISOUtil.CHARSET); else if (obj instanceof byte[]) b = (byte[]) obj; } return b;...
ISOMsg extends ISOComponent implements Cloneable, Loggeable, Externalizable { public byte[] getBytes (int fldno) { byte[] b = null; if (hasField (fldno)) { Object obj = getValue(fldno); if (obj instanceof String) b = ((String) obj).getBytes(ISOUtil.CHARSET); else if (obj instanceof byte[]) b = (byte[]) obj; } return b;...
ISOMsg extends ISOComponent implements Cloneable, Loggeable, Externalizable { public byte[] getBytes (int fldno) { byte[] b = null; if (hasField (fldno)) { Object obj = getValue(fldno); if (obj instanceof String) b = ((String) obj).getBytes(ISOUtil.CHARSET); else if (obj instanceof byte[]) b = (byte[]) obj; } return b;...
ISOMsg extends ISOComponent implements Cloneable, Loggeable, Externalizable { public byte[] getBytes (int fldno) { byte[] b = null; if (hasField (fldno)) { Object obj = getValue(fldno); if (obj instanceof String) b = ((String) obj).getBytes(ISOUtil.CHARSET); else if (obj instanceof byte[]) b = (byte[]) obj; } return b;...
@Test public void testGetDescription() { assertThat(iSOBasePackager.getDescription(), is("org.jpos.iso.ISOBasePackagerTest$1")); }
public String getDescription () { return getClass().getName(); }
ISOBasePackager implements ISOPackager, LogSource { public String getDescription () { return getClass().getName(); } }
ISOBasePackager implements ISOPackager, LogSource { public String getDescription () { return getClass().getName(); } }
ISOBasePackager implements ISOPackager, LogSource { public String getDescription () { return getClass().getName(); } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unp...
ISOBasePackager implements ISOPackager, LogSource { public String getDescription () { return getClass().getName(); } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unp...
@Test public void testGetHeaderLength() { iSOBasePackager.setHeaderLength(9876); assertThat(iSOBasePackager.getHeaderLength(), is(9876)); }
public int getHeaderLength () { return headerLength; }
ISOBasePackager implements ISOPackager, LogSource { public int getHeaderLength () { return headerLength; } }
ISOBasePackager implements ISOPackager, LogSource { public int getHeaderLength () { return headerLength; } }
ISOBasePackager implements ISOPackager, LogSource { public int getHeaderLength () { return headerLength; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOCom...
ISOBasePackager implements ISOPackager, LogSource { public int getHeaderLength () { return headerLength; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOCom...
@Test public void testGetLogger() { Logger logger = mock(Logger.class); iSOBasePackager.setLogger(logger, "testRealm"); assertThat(iSOBasePackager.getLogger(), is(logger)); }
public Logger getLogger() { return logger; }
ISOBasePackager implements ISOPackager, LogSource { public Logger getLogger() { return logger; } }
ISOBasePackager implements ISOPackager, LogSource { public Logger getLogger() { return logger; } }
ISOBasePackager implements ISOPackager, LogSource { public Logger getLogger() { return logger; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, ...
ISOBasePackager implements ISOPackager, LogSource { public Logger getLogger() { return logger; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, ...
@Test public void testGetRealm() { Logger logger = mock(Logger.class); iSOBasePackager.setLogger(logger, "testRealm"); assertThat(iSOBasePackager.getRealm(), is("testRealm")); }
public String getRealm () { return realm; }
ISOBasePackager implements ISOPackager, LogSource { public String getRealm () { return realm; } }
ISOBasePackager implements ISOPackager, LogSource { public String getRealm () { return realm; } }
ISOBasePackager implements ISOPackager, LogSource { public String getRealm () { return realm; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, I...
ISOBasePackager implements ISOPackager, LogSource { public String getRealm () { return realm; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, I...
@Test public void testGetMaxValidField() { assertThat(iSOBasePackager.getMaxValidField(), is(128)); }
protected int getMaxValidField() { return 128; }
ISOBasePackager implements ISOPackager, LogSource { protected int getMaxValidField() { return 128; } }
ISOBasePackager implements ISOPackager, LogSource { protected int getMaxValidField() { return 128; } }
ISOBasePackager implements ISOPackager, LogSource { protected int getMaxValidField() { return 128; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent...
ISOBasePackager implements ISOPackager, LogSource { protected int getMaxValidField() { return 128; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent...
@Test public void testCreateISOMsg() { assertThat(iSOBasePackager.createISOMsg(), is(instanceOf(ISOMsg.class))); }
public ISOMsg createISOMsg () { return new ISOMsg(); }
ISOBasePackager implements ISOPackager, LogSource { public ISOMsg createISOMsg () { return new ISOMsg(); } }
ISOBasePackager implements ISOPackager, LogSource { public ISOMsg createISOMsg () { return new ISOMsg(); } }
ISOBasePackager implements ISOPackager, LogSource { public ISOMsg createISOMsg () { return new ISOMsg(); } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOCom...
ISOBasePackager implements ISOPackager, LogSource { public ISOMsg createISOMsg () { return new ISOMsg(); } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOCom...
@Test public void testSetFieldPackager() { iSOBasePackager.setFieldPackager(iSOFieldPackagers); assertThat(iSOBasePackager.getFieldPackager(0), is(iSOFieldPackager)); }
public void setFieldPackager (ISOFieldPackager[] fld) { this.fld = fld; }
ISOBasePackager implements ISOPackager, LogSource { public void setFieldPackager (ISOFieldPackager[] fld) { this.fld = fld; } }
ISOBasePackager implements ISOPackager, LogSource { public void setFieldPackager (ISOFieldPackager[] fld) { this.fld = fld; } }
ISOBasePackager implements ISOPackager, LogSource { public void setFieldPackager (ISOFieldPackager[] fld) { this.fld = fld; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b);...
ISOBasePackager implements ISOPackager, LogSource { public void setFieldPackager (ISOFieldPackager[] fld) { this.fld = fld; } void setFieldPackager(ISOFieldPackager[] fld); void setThirdBitmapField(int f); int getThirdBitmapField(); @Override byte[] pack(ISOComponent m); @Override int unpack(ISOComponent m, byte[] b);...
@Test public void testAsciiToEbcdic() throws Throwable { byte[] a = new byte[0]; byte[] result = ISOUtil.asciiToEbcdic(a); assertEquals(0, result.length, "result.length"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testStopServiceThrowsNullPointerException() throws Throwable { QMUX qMUX = new QMUX(); try { qMUX.stopService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEq...
public void stopService () { listenerRegistered = false; sp.removeListener (in, this); }
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void stopService () { listenerRegistered = false; sp.removeListener (in, this); } }
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void stopService () { listenerRegistered = false; sp.removeListener (in, this); } QMUX(); }
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void stopService () { listenerRegistered = false; sp.removeListener (in, this); } QMUX(); void initService(); void startService(); void stopService(); void destroyService(); static MUX getMUX(String name); ISOMsg req...
QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider { public void stopService () { listenerRegistered = false; sp.removeListener (in, this); } QMUX(); void initService(); void startService(); void stopService(); void destroyService(); static MUX getMUX(String name); ISOMsg req...
@Test public void testAsciiToEbcdic1() throws Throwable { byte[] a = new byte[1]; byte[] result = ISOUtil.asciiToEbcdic(a); assertEquals(1, result.length, "result.length"); assertEquals((byte) 0, result[0], "result[0]"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic2() throws Throwable { byte[] e = new byte[13]; ISOUtil.asciiToEbcdic("testISOUtils", e, 0); assertEquals((byte) -93, e[0], "e[0]"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic3() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { ISOUtil.asciiToEbcdic("", new byte[3], 100); }); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic4() throws Throwable { byte[] result = ISOUtil.asciiToEbcdic(""); assertEquals(0, result.length, "result.length"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic5() throws Throwable { byte[] result = ISOUtil.asciiToEbcdic("testISOUtils"); assertEquals(12, result.length, "result.length"); assertEquals((byte) -93, result[0], "result[0]"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic6() throws Throwable { byte[] result = ISOUtil.asciiToEbcdic("testISOUtils"); byte[] expected = new byte[]{(byte)0xA3, (byte)0x85, (byte)0xA2, (byte)0xA3, (byte)0xC9, (byte)0xE2, (byte)0xD6, (byte)0xE4, (byte)0xA3, (byte) 0x89, (byte)0x93, (byte)0xA2 }; assertArrayEquals(expected, res...
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdic7() throws Throwable { String testString = "testISOUtils1047`¬!\"£$%^&*()-=_+;:[]{}'@#~\\|,<>./?"; byte[] result = ISOUtil.asciiToEbcdic(testString); byte[] expected = testString.getBytes("Cp1047"); assertArrayEquals(expected, result, "full result"); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdicThrowsArrayIndexOutOfBoundsException() throws Throwable { byte[] e = new byte[0]; try { ISOUtil.asciiToEbcdic("testISOUtils", e, 100); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { } }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdicThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.asciiToEbcdic((byte[]) null); }); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testAsciiToEbcdicThrowsNullPointerException1() throws Throwable { byte[] e = new byte[3]; try { ISOUtil.asciiToEbcdic((String) null, e, 100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getM...
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testGetObject() throws Throwable { Object result = new TaskAdaptor().getObject(); assertNull(result, "result"); }
public Object getObject () { return task; }
TaskAdaptor extends QBeanSupport { public Object getObject () { return task; } }
TaskAdaptor extends QBeanSupport { public Object getObject () { return task; } TaskAdaptor(); }
TaskAdaptor extends QBeanSupport { public Object getObject () { return task; } TaskAdaptor(); Object getObject(); }
TaskAdaptor extends QBeanSupport { public Object getObject () { return task; } TaskAdaptor(); Object getObject(); }
@Test public void testCreateTLVWithNullValue() { CharTag tag = instance.createTLV("X7", null); assertAll( () -> assertEquals("X7", tag.getTagId()), () -> assertNull(tag.getValue()), () -> assertNull(instance.get("X7")) ); }
public CharTag createTLV(String tagId, String value) throws IllegalArgumentException { validateTag(tagId); int maxValueLength = (int) Math.pow(BigDecimal.TEN.doubleValue(), lenLen) - 1; if (value != null && value.length() > maxValueLength) throw new IllegalArgumentException( String.format("The value size %d of the tag ...
CharTagMap extends HashMap<String, CharTag> { public CharTag createTLV(String tagId, String value) throws IllegalArgumentException { validateTag(tagId); int maxValueLength = (int) Math.pow(BigDecimal.TEN.doubleValue(), lenLen) - 1; if (value != null && value.length() > maxValueLength) throw new IllegalArgumentException...
CharTagMap extends HashMap<String, CharTag> { public CharTag createTLV(String tagId, String value) throws IllegalArgumentException { validateTag(tagId); int maxValueLength = (int) Math.pow(BigDecimal.TEN.doubleValue(), lenLen) - 1; if (value != null && value.length() > maxValueLength) throw new IllegalArgumentException...
CharTagMap extends HashMap<String, CharTag> { public CharTag createTLV(String tagId, String value) throws IllegalArgumentException { validateTag(tagId); int maxValueLength = (int) Math.pow(BigDecimal.TEN.doubleValue(), lenLen) - 1; if (value != null && value.length() > maxValueLength) throw new IllegalArgumentException...
CharTagMap extends HashMap<String, CharTag> { public CharTag createTLV(String tagId, String value) throws IllegalArgumentException { validateTag(tagId); int maxValueLength = (int) Math.pow(BigDecimal.TEN.doubleValue(), lenLen) - 1; if (value != null && value.length() > maxValueLength) throw new IllegalArgumentException...
@Test public void testAsciiToEbcdicThrowsNullPointerException2() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.asciiToEbcdic((String) null); }); }
public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); }
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
ISOUtil { public static byte[] asciiToEbcdic(String s) { return EBCDIC.encode(s).array(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static by...
@Test public void testBcd2str() throws Throwable { byte[] b = new byte[0]; String result = ISOUtil.bcd2str(b, 100, 0, true); assertEquals("", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str1() throws Throwable { byte[] b = new byte[2]; String result = ISOUtil.bcd2str(b, 0, 2, true); assertEquals("00", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str2() throws Throwable { byte[] b = new byte[2]; b[0] = (byte) -61; String result = ISOUtil.bcd2str(b, 0, 1, false); assertEquals("C", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str3() throws Throwable { byte[] b = new byte[1]; b[0] = (byte) -3; String result = ISOUtil.bcd2str(b, 0, 1, true); assertEquals("=", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str4() throws Throwable { byte[] b = new byte[2]; b[0] = (byte) -31; String result = ISOUtil.bcd2str(b, 0, 1, false); assertEquals("E", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str5() throws Throwable { byte[] b = new byte[3]; String result = ISOUtil.bcd2str(b, 0, 1, true); assertEquals("0", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2str6() throws Throwable { byte[] b = new byte[3]; b[1] = (byte) 14; String result = ISOUtil.bcd2str(b, 0, 3, true); assertEquals("00E", result, "result"); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[41]; b[25] = (byte) -100; b[30] = (byte) 13; b[35] = (byte) -29; ISOUtil.bcd2str(b, 16, 61, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException1() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[41]; b[25] = (byte) -100; b[30] = (byte) 13; b[35] = (byte) -29; ISOUtil.bcd2str(b, 16, 61, false); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testInitServiceThrowsNullPointerException() throws Throwable { TaskAdaptor taskAdaptor = new TaskAdaptor(); try { taskAdaptor.initService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMe...
protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); Object getObject(); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); Object getObject(); }
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException2() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[25]; b[2] = (byte) -63; b[3] = (byte) 62; b[23] = (byte) 29; ISOUtil.bcd2str(b, 0, 100, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException3() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[41]; b[25] = (byte) -100; b[35] = (byte) -29; ISOUtil.bcd2str(b, 16, 61, false); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException4() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[2]; b[1] = (byte) 28; ISOUtil.bcd2str(b, 0, 27, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsArrayIndexOutOfBoundsException5() throws Throwable { assertThrows(ArrayIndexOutOfBoundsException.class, () -> { byte[] b = new byte[25]; b[2] = (byte) -63; b[3] = (byte) 62; ISOUtil.bcd2str(b, 0, 100, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsNegativeArraySizeException() throws Throwable { assertThrows(NegativeArraySizeException.class, () -> { byte[] b = new byte[3]; ISOUtil.bcd2str(b, 100, -1, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bcd2str(null, 100, 1, false); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsNullPointerException1() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bcd2str(null, 100, 1, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBcd2strThrowsNullPointerException2() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bcd2str(null, 100, 1000, true); }); }
public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16); if (c ==...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
ISOUtil { public static String bcd2str(byte[] b, int offset, int len, boolean padLeft) { StringBuilder d = new StringBuilder(len); int start = (len & 1) == 1 && padLeft ? 1 : 0; for (int i=start; i < len+start; i++) { int shift = (i & 1) == 1 ? 0 : 4; char c = Character.forDigit ( b[offset+ (i>>1)] >> shift & 0x0F, 16)...
@Test public void testBitSet2byte() throws Throwable { byte[] b = new byte[1]; BitSet bmap = new BitSet(); ISOUtil.hex2BitSet(bmap, b, 0); byte[] b2 = new byte[0]; ISOUtil.hex2BitSet(bmap, b2, -1); BitSet b3 = new BitSet(100); b3.or(bmap); byte[] result = ISOUtil.bitSet2byte(b3); assertEquals(8, result.length, "result....
public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
@Test public void testBitSet2byte3() throws Throwable { byte[] result = ISOUtil.bitSet2byte(new BitSet(100)); assertEquals(0, result.length, "result.length"); }
public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
@Test public void testInitServiceThrowsNullPointerException1() throws Throwable { TaskAdaptor taskAdaptor = new TaskAdaptor(); String[] args = new String[0]; taskAdaptor.setServer(q2); try { taskAdaptor.initService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVers...
protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); Object getObject(); }
TaskAdaptor extends QBeanSupport { protected void initService () throws Exception { QFactory factory = getServer().getFactory(); Element e = getPersist (); task = factory.newInstance (e.getChildTextTrim ("class")); factory.setLogger (task, e); } TaskAdaptor(); Object getObject(); }
@Test public void testBitSet2byteThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bitSet2byte(null); }); }
public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); }
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
ISOUtil { public static byte[] bitSet2byte (BitSet b) { int len = b.length()+62 >>6 <<6; byte[] d = new byte[len >> 3]; for (int i=0; i<len; i++) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; if (len>64) d[0] |= 0x80; if (len>128) d[8] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String e...
@Test public void testBitSet2extendedByte() throws Throwable { byte[] result = ISOUtil.bitSet2extendedByte(new BitSet(100)); assertEquals(16, result.length, "result.length"); assertEquals((byte) -128, result[0], "result[0]"); }
public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); s...
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); s...
@Test public void testBitSet2extendedByteThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bitSet2extendedByte(null); }); }
public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); }
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); s...
ISOUtil { public static byte[] bitSet2extendedByte ( BitSet b ){ int len = 128; byte[] d = new byte[len >> 3]; for ( int i=0; i<len; i++ ) if (b.get(i+1)) d[i >> 3] |= 0x80 >> i % 8; d[0] |= 0x80; return d; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); s...
@Test public void testBitSet2String() throws Throwable { BitSet bmap = new BitSet(100); byte[] b = new byte[1]; ISOUtil.byte2BitSet(bmap, b, 100); bmap.set(100); bmap.flip(0, 100); String result = ISOUtil.bitSet2String(bmap); assertEquals( "1111111111111111111111111111111111111111111111111111111111111111111111111111111...
public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
@Test public void testBitSet2String1() throws Throwable { String result = ISOUtil.bitSet2String(new BitSet(100)); assertEquals( "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", result, "result"); }
public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
@Test public void testBitSet2String2() throws Throwable { String result = ISOUtil.bitSet2String(new BitSet(0)); assertEquals("", result, "result"); }
public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
@Test public void testBitSet2StringThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.bitSet2String(null); }); }
public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); }
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
ISOUtil { public static String bitSet2String (BitSet b) { int len = b.size(); len = len > 128 ? 128: len; StringBuilder d = new StringBuilder(len); for (int i=0; i<len; i++) d.append (b.get(i) ? '1' : '0'); return d.toString(); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, in...
@Test public void testBlankUnPad() throws Throwable { String result = ISOUtil.blankUnPad(""); assertEquals("", result, "result"); }
public static String blankUnPad( String s ) { return unPadRight(s, ' '); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
@Test public void testBlankUnPad1() throws Throwable { String result = ISOUtil.blankUnPad("1"); assertEquals("1", result, "result"); }
public static String blankUnPad( String s ) { return unPadRight(s, ' '); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
@Test public void testBlankUnPadThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.blankUnPad(null); }); }
public static String blankUnPad( String s ) { return unPadRight(s, ' '); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); }
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
ISOUtil { public static String blankUnPad( String s ) { return unPadRight(s, ' '); } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte[] ebcdicToAsciiBytes(byte[] e); static byte[] ebcdicToAsciiBytes(byte[] e, int offset, int len); static byte[] as...
@Test public void testStartServiceThrowsNullPointerException() throws Throwable { TaskAdaptor taskAdaptor = new TaskAdaptor(); try { taskAdaptor.startService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.get...
protected void startService () throws Exception { getServer().getFactory().setConfiguration(task, getPersist()); NameRegistrar.register (getName (), task); if (task instanceof Runnable) { new Thread ((Runnable) task).start (); } }
TaskAdaptor extends QBeanSupport { protected void startService () throws Exception { getServer().getFactory().setConfiguration(task, getPersist()); NameRegistrar.register (getName (), task); if (task instanceof Runnable) { new Thread ((Runnable) task).start (); } } }
TaskAdaptor extends QBeanSupport { protected void startService () throws Exception { getServer().getFactory().setConfiguration(task, getPersist()); NameRegistrar.register (getName (), task); if (task instanceof Runnable) { new Thread ((Runnable) task).start (); } } TaskAdaptor(); }
TaskAdaptor extends QBeanSupport { protected void startService () throws Exception { getServer().getFactory().setConfiguration(task, getPersist()); NameRegistrar.register (getName (), task); if (task instanceof Runnable) { new Thread ((Runnable) task).start (); } } TaskAdaptor(); Object getObject(); }
TaskAdaptor extends QBeanSupport { protected void startService () throws Exception { getServer().getFactory().setConfiguration(task, getPersist()); NameRegistrar.register (getName (), task); if (task instanceof Runnable) { new Thread ((Runnable) task).start (); } } TaskAdaptor(); Object getObject(); }
@Test public void testByte2BitSet() throws Throwable { byte[] b = new byte[9]; BitSet result = ISOUtil.byte2BitSet(b, 0, true); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet1() throws Throwable { byte[] b = new byte[9]; b[4] = (byte) 1; BitSet result = ISOUtil.byte2BitSet(b, 0, true); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet11() throws Throwable { byte[] b = new byte[9]; b[1] = (byte) -3; BitSet result = ISOUtil.byte2BitSet(b, 0, 63); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet2() throws Throwable { byte[] b = new byte[10]; BitSet result = ISOUtil.byte2BitSet(b, 0, 1000); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet3() throws Throwable { byte[] b = new byte[9]; b[1] = (byte) -3; BitSet result = ISOUtil.byte2BitSet(b, 0, 127); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet5() throws Throwable { byte[] b = new byte[1]; BitSet result = ISOUtil.byte2BitSet(null, b, 100); assertNull(result, "result"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet6() throws Throwable { byte[] b = new byte[0]; BitSet result = ISOUtil.byte2BitSet(null, b, 100); assertNull(result, "result"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet7() throws Throwable { byte[] b = new byte[9]; b[1] = (byte) -3; BitSet result = ISOUtil.byte2BitSet(b, 0, 128); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet8() throws Throwable { byte[] b = new byte[9]; b[1] = (byte) -3; BitSet result = ISOUtil.byte2BitSet(b, 0, 1000); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSet9() throws Throwable { byte[] b = new byte[10]; BitSet result = ISOUtil.byte2BitSet(b, 0, 100); assertEquals(64, result.size(), "result.size()"); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testStopService() throws Throwable { TaskAdaptor taskAdaptor = new TaskAdaptor(); taskAdaptor.setName("testTaskAdaptorName"); taskAdaptor.stopService(); assertNull(taskAdaptor.task, "taskAdaptor.task"); assertEquals("testTaskAdaptorName", taskAdaptor.getName(), "taskAdaptor.getName()"); }
protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); }
TaskAdaptor extends QBeanSupport { protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); } }
TaskAdaptor extends QBeanSupport { protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); } TaskAdaptor(); }
TaskAdaptor extends QBeanSupport { protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); } TaskAdaptor(); Object getObject(); }
TaskAdaptor extends QBeanSupport { protected void stopService () throws Exception { NameRegistrar.unregister (getName ()); if (task instanceof Destroyable) ((Destroyable)task).destroy (); } TaskAdaptor(); Object getObject(); }
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException() throws Throwable { byte[] b = new byte[71]; b[62] = (byte) -128; b[63] = (byte) 1; try { ISOUtil.byte2BitSet(b, 62, true); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersion...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException1() throws Throwable { byte[] b = new byte[3]; b[0] = (byte) 3; try { ISOUtil.byte2BitSet(b, 0, true); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { asse...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException10() throws Throwable { byte[] b = new byte[3]; try { ISOUtil.byte2BitSet(b, 100, 64); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("100", ...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException12() throws Throwable { byte[] b = new byte[1]; b[0] = (byte) -29; try { ISOUtil.byte2BitSet(b, 0, false); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { ...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException13() throws Throwable { byte[] b = new byte[1]; try { ISOUtil.byte2BitSet(b, 0, false); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("1", e...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException14() throws Throwable { byte[] b = new byte[1]; try { ISOUtil.byte2BitSet(b, 0, true); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("1", ex...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException15() throws Throwable { byte[] b = new byte[0]; try { ISOUtil.byte2BitSet(b, 100, false); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("100...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException16() throws Throwable { byte[] b = new byte[0]; try { ISOUtil.byte2BitSet(b, 100, true); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("100"...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException18() throws Throwable { byte[] b = new byte[12]; b[1] = (byte) -63; b[9] = (byte) -128; try { ISOUtil.byte2BitSet(b, 1, 1000); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersio...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException19() throws Throwable { byte[] b = new byte[2]; b[1] = (byte) 59; try { ISOUtil.byte2BitSet(b, 0, 128); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { ass...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testGetPath() throws Throwable { String result = new DirPollAdaptor().getPath(); assertEquals(".", result, "result"); }
public String getPath () { return path == null ? "." : path; }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public String getPath () { return path == null ? "." : path; } }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public String getPath () { return path == null ? "." : path; } DirPollAdaptor(); }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public String getPath () { return path == null ? "." : path; } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval)...
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public String getPath () { return path == null ? "." : path; } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval)...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException2() throws Throwable { byte[] b = new byte[2]; b[1] = (byte) -1; try { ISOUtil.byte2BitSet(b, 1, 129); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { asse...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException3() throws Throwable { byte[] b = new byte[2]; b[1] = (byte) -1; try { ISOUtil.byte2BitSet(b, 1, 127); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { asse...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException4() throws Throwable { byte[] b = new byte[1]; b[0] = (byte) 9; try { ISOUtil.byte2BitSet(b, 0, 63); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assert...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException5() throws Throwable { byte[] b = new byte[1]; b[0] = (byte) 3; try { ISOUtil.byte2BitSet(b, 0, 129); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { asser...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException6() throws Throwable { byte[] b = new byte[1]; b[0] = (byte) -61; try { ISOUtil.byte2BitSet(b, 0, 64); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { asse...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException7() throws Throwable { byte[] b = new byte[2]; try { ISOUtil.byte2BitSet(b, 0, 128); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("2", ex.g...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException8() throws Throwable { byte[] b = new byte[1]; try { ISOUtil.byte2BitSet(b, 0, 63); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("1", ex.ge...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsArrayIndexOutOfBoundsException9() throws Throwable { byte[] b = new byte[1]; try { ISOUtil.byte2BitSet(b, 0, 129); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("1", ex.g...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsIndexOutOfBoundsException() throws Throwable { BitSet bmap = new BitSet(100); byte[] b = new byte[0]; ISOUtil.byte2BitSet(bmap, b, 100); byte[] b2 = new byte[4]; b2[0] = (byte) 1; try { ISOUtil.byte2BitSet(bmap, b2, -30); fail("Expected IndexOutOfBoundsException to be thrown"); } ...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsNullPointerException() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.byte2BitSet(null, 100, true); }); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testGetPollInterval() throws Throwable { long result = new DirPollAdaptor().getPollInterval(); assertEquals(1000L, result, "result"); }
public long getPollInterval () { return pollInterval; }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public long getPollInterval () { return pollInterval; } }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public long getPollInterval () { return pollInterval; } DirPollAdaptor(); }
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public long getPollInterval () { return pollInterval; } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval); long ...
DirPollAdaptor extends QBeanSupport implements DirPollAdaptorMBean { public long getPollInterval () { return pollInterval; } DirPollAdaptor(); synchronized void setPath(String path); synchronized void setPoolSize(int size); int getPoolSize(); String getPath(); synchronized void setPollInterval(long pollInterval); long ...
@Test public void testByte2BitSetThrowsNullPointerException1() throws Throwable { assertThrows(NullPointerException.class, () -> { byte[] b = new byte[4]; b[2] = (byte) 127; ISOUtil.byte2BitSet(null, b, 100); }); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsNullPointerException2() throws Throwable { BitSet bmap = new BitSet(100); try { ISOUtil.byte2BitSet(bmap, null, 100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMess...
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testByte2BitSetThrowsNullPointerException3() throws Throwable { assertThrows(NullPointerException.class, () -> { ISOUtil.byte2BitSet(null, 100, 65); }); }
public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } }
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
ISOUtil { public static BitSet byte2BitSet (byte[] b, int offset, boolean bitZeroMeansExtended) { int len = bitZeroMeansExtended ? (b[offset] & 0x80) == 0x80 ? 128 : 64 : 64; BitSet bmap = new BitSet (len); for (int i=0; i<len; i++) if ((b[offset + (i >> 3)] & 0x80 >> i % 8) > 0) bmap.set(i+1); return bmap; } ISOUtil()...
@Test public void testConcat() throws Throwable { byte[] array1 = new byte[3]; byte[] result = ISOUtil.concat(array1, 0, 1, ISOUtil.asciiToEbcdic("testISOUtils"), 10, 0); assertEquals(1, result.length, "result.length"); assertEquals((byte) 0, result[0], "result[0]"); }
public static byte[] concat (byte[] array1, byte[] array2) { byte[] concatArray = new byte[array1.length + array2.length]; System.arraycopy(array1, 0, concatArray, 0, array1.length); System.arraycopy(array2, 0, concatArray, array1.length, array2.length); return concatArray; }
ISOUtil { public static byte[] concat (byte[] array1, byte[] array2) { byte[] concatArray = new byte[array1.length + array2.length]; System.arraycopy(array1, 0, concatArray, 0, array1.length); System.arraycopy(array2, 0, concatArray, array1.length, array2.length); return concatArray; } }
ISOUtil { public static byte[] concat (byte[] array1, byte[] array2) { byte[] concatArray = new byte[array1.length + array2.length]; System.arraycopy(array1, 0, concatArray, 0, array1.length); System.arraycopy(array2, 0, concatArray, array1.length, array2.length); return concatArray; } ISOUtil(); }
ISOUtil { public static byte[] concat (byte[] array1, byte[] array2) { byte[] concatArray = new byte[array1.length + array2.length]; System.arraycopy(array1, 0, concatArray, 0, array1.length); System.arraycopy(array2, 0, concatArray, array1.length, array2.length); return concatArray; } ISOUtil(); static String ebcdicTo...
ISOUtil { public static byte[] concat (byte[] array1, byte[] array2) { byte[] concatArray = new byte[array1.length + array2.length]; System.arraycopy(array1, 0, concatArray, 0, array1.length); System.arraycopy(array2, 0, concatArray, array1.length, array2.length); return concatArray; } ISOUtil(); static String ebcdicTo...