Lines Matching defs:data
37 * A DER input stream, used for parsing ASN.1 DER-encoded data such as
39 * the advantage that it allows only a single encoding of primitive data.
40 * (High level data such as dates still support many encodings.) That is,
44 * tagged data values. Accordingly, this programming interface does
46 * that kind of input stream holds untagged data values and using that
47 * I/O model could prevent correct parsing of the DER data.
50 * data encodings which are defined. That subset is sufficient for parsing
65 * handles streaming data relatively well.
73 * Create a DER input stream from a data buffer. The buffer is not
77 * @param data the buffer from which to create the string (CONSUMED)
79 public DerInputStream(byte[] data) throws IOException {
80 init(data, 0, data.length);
84 * Create a DER input stream from part of a data buffer.
88 * @param data the buffer from which to create the string (CONSUMED)
89 * @param offset the first index of <em>data</em> which will
94 public DerInputStream(byte[] data, int offset, int len) throws IOException {
95 init(data, offset, len);
101 private void init(byte[] data, int offset, int len) throws IOException {
102 if ((offset+2 > data.length) || (offset+len > data.length)) {
106 if (DerIndefLenConverter.isIndefinite(data[offset+1])) {
108 System.arraycopy(data, offset, inData, 0, len);
113 buffer = new DerInputBuffer(data, offset, len);
127 * @param do_skip true if the existing data in the input stream should
128 * be skipped. If this value is false, the next data read
274 throw new IOException("getNull, bad data");
287 * to group data values. They may have optional or context
291 * (used to initialize an auto-growing data structure)
308 * (used to initialize an auto-growing data structure)
325 * (used to initialize an auto-growing data structure)
375 * Create a temporary stream from which to read the data,
395 throw new IOException("extra data at end of vector");
473 * @param enc the encoder to use to interpret the data. Should
555 * NOTE: tmp == 0 indicates indefinite length encoded data.
556 * tmp > 4 indicates more than 4Gb of data.