Examples of toByteArray()


Examples of sun.security.util.DerValue.toByteArray()

     *  follow the prescribed format.
     */
    public Oid(InputStream derOid) throws GSSException {
  try {
      DerValue derVal = new DerValue(derOid);
      derEncoding = derVal.toByteArray();
      oid = derVal.getOID();
  } catch (IOException e) {
            throw new GSSException(GSSException.FAILURE,
                          "Improperly formatted ASN.1 DER encoding for Oid");
  }
View Full Code Here

Examples of xbird.util.io.FastByteArrayOutputStream.toByteArray()

            oos.flush();
        } catch (IOException e) {
            LOG.error(e.getMessage(), e);
            throw new IllegalStateException(e);
        }
        return bos.toByteArray();
    }
}
View Full Code Here

Examples of xbird.util.io.FastMultiByteArrayOutputStream.toByteArray()

                keys[i].writeTo(os);
                // Write out the Values
                os.writeInt(values[i].getLength());
                values[i].writeTo(os);
            }
            writeValue(page, new Value(bos.toByteArray()));
            this.dirty = false;
        }

        private boolean isFixedKey() {
            return _fileHeader.keyLength != VAR_KEY_LENGTH;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.