Searched defs:in (Results 1 - 25 of 137) sorted by relevance

123456

/libcore/luni/src/main/java/java/util/
H A DInvalidPropertiesFormatException.java5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
40 * current stack trace and message filled in.
65 private void readObject(ObjectInputStream in) argument
/libcore/luni/src/main/java/libcore/io/
H A DBase64.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 public static byte[] decode(byte[] in) { argument
36 return decode(in, in.length);
39 public static byte[] decode(byte[] in, int len) { argument
54 chr = in[len-1];
66 // index in the output array
68 // index in the input array
75 chr = in[
135 encode(byte[] in) argument
[all...]
H A DStrictLineReader.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
36 * cache entries or cache journal. Unlike the {@link BufferedReader} which in conjunction with
42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1.
49 private final InputStream in; field in class:StrictLineReader
53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end
54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is
65 * @param in the {@code InputStream} to read data from.
66 * @throws NullPointerException if {@code in} is null.
68 public StrictLineReader(InputStream in) { argument
80 StrictLineReader(InputStream in, int capacity) argument
93 StrictLineReader(InputStream in, Charset charset) argument
108 StrictLineReader(InputStream in, int capacity, Charset charset) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Time.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
43 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
45 c.set(Calendar.YEAR, in.times[0]);
46 c.set(Calendar.MONTH, in.times[1]-1);
47 c.set(Calendar.DAY_OF_MONTH, in.times[2]);
48 c.set(Calendar.HOUR_OF_DAY, in.times[3]);
49 c.set(Calendar.MINUTE, in.times[4]);
50 c.set(Calendar.SECOND, in.times[5]);
51 c.set(Calendar.MILLISECOND, in
[all...]
H A DASN1Boolean.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 in.readBoolean();
65 if (in.isVerify) {
68 return getDecodedObject(in);
74 * @param in - BER input stream
77 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 if (in.buffer[in
[all...]
H A DASN1Enumerated.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
63 public Object decode(BerInputStream in) throws IOException { argument
64 in.readEnumerated();
66 if (in.isVerify) {
69 return getDecodedObject(in);
77 public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 return Arrays.copyOfRange(in.buffer, in.contentOffset, in
[all...]
H A DASN1Explicit.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 if (constrId != in.tag) {
65 in.tagOffset + "]. Expected tag: " + Integer.toHexString(constrId) + ", " +
66 "but encountered tag " + Integer.toHexString(in.tag));
68 in.next();
70 in.content = type.decode(in);
72 if (in
[all...]
H A DASN1GeneralizedTime.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
65 public Object decode(BerInputStream in) throws IOException { argument
66 in.readGeneralizedTime();
68 if (in.isVerify) {
71 return getDecodedObject(in);
H A DASN1OctetString.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
61 @Override public Object decode(BerInputStream in) throws IOException { argument
62 in.readOctetString();
64 if (in.isVerify) {
67 return getDecodedObject(in);
75 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
76 return Arrays.copyOfRange(in.buffer, in.contentOffset, in
[all...]
H A DASN1Oid.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 in.readOID();
65 if (in.isVerify) {
68 return getDecodedObject(in);
76 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 int oidElement = in.oidElement;
81 int octet = in.buffer[in
[all...]
H A DASN1Sequence.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSequence(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
H A DASN1SequenceOf.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSequenceOf(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
H A DASN1Set.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSet(this);
42 if(in.isVerify){
45 return getDecodedObject(in);
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DHandshakeMessage.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
37 public static HandshakeMessage read(DataInput in) throws IOException { argument
38 int type = in.readUnsignedByte();
49 int bodyLength = IoUtils.readUnsignedInt24(in);
51 in.readFully(result.body);
61 protected void parseBody(@SuppressWarnings("unused") DataInput in) throws IOException {} argument
/libcore/support/src/test/java/libcore/tlswire/record/
H A DTlsRecord.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
31 public static TlsRecord read(DataInput in) throws IOException { argument
33 result.type = in.readUnsignedByte();
34 result.version = TlsProtocolVersion.read(in);
35 int fragmentLength = in.readUnsignedShort();
37 in.readFully(result.fragment);
/libcore/support/src/test/java/libcore/tlswire/util/
H A DIoUtils.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
24 public static int readUnsignedInt24(DataInput in) throws IOException { argument
25 return (in.readUnsignedByte() << 16) | in.readUnsignedShort();
28 public static byte[] readTlsVariableLengthByteVector(DataInput in, int maxSizeBytes) argument
30 int sizeBytes = readTlsVariableLengthVectorSizeBytes(in, maxSizeBytes);
32 in.readFully(result);
36 public static int[] readTlsVariableLengthUnsignedShortVector(DataInput in, int maxSizeBytes) argument
38 int sizeBytes = readTlsVariableLengthVectorSizeBytes(in, maxSizeByte
47 readTlsVariableLengthVectorSizeBytes(DataInput in, int maxSizeBytes) argument
[all...]
/libcore/dex/src/main/java/com/android/dex/
H A DLeb128.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
31 * Gets the number of bytes in the unsigned LEB128 encoding of the
34 * @param value the value in question
35 * @return its write size, in bytes
52 * Gets the number of bytes in the signed LEB128 encoding of the
55 * @param value the value in question
56 * @return its write size, in bytes
79 * Reads an signed integer from {@code in}.
81 public static int readSignedLeb128(ByteInput in) { argument
109 readUnsignedLeb128(ByteInput in) argument
[all...]
H A DMutf8.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
23 * Modified UTF-8 as described in the dex file format spec.
31 * Decodes bytes from {@code in} into {@code out} until a delimiter 0x00 is
34 public static String decode(ByteInput in, char[] out) throws UTFDataFormatException { argument
37 char a = (char) (in.readByte() & 0xff);
45 int b = in.readByte() & 0xff;
51 int b = in.readByte() & 0xff;
52 int c = in.readByte() & 0xff;
/libcore/luni/src/main/java/java/io/
H A DFileDescriptor.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 public static final FileDescriptor in = new FileDescriptor(); field in class:FileDescriptor
54 in.descriptor = STDIN_FILENO;
H A DFilterInputStream.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 protected volatile InputStream in; field in class:FilterInputStream
43 * overridden. Subclasses should check for null in their constructors.
45 * @param in the input stream to filter reads on.
47 protected FilterInputStream(InputStream in) { argument
48 this.in = in;
53 return in.available();
64 in
[all...]
H A DFilterReader.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 protected Reader in; field in class:FilterReader
38 * Constructs a new FilterReader on the Reader {@code in}.
40 * @param in
43 protected FilterReader(Reader in) { argument
44 super(in);
45 this.in = in;
57 in
[all...]
H A DSequenceInputStream.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
38 private InputStream in; field in class:SequenceInputStream
58 in = s1;
69 * if any of the elements in {@code e} is {@code null}.
74 in = e.nextElement();
75 if (in == null) {
83 if (e != null && in != null) {
84 return in.available();
90 * Closes all streams in thi
[all...]
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 public static String decode(byte[] in, char[] out, int offset, int utfSize) throws UTFDataFormatException { argument
38 if ((out[s] = (char) in[offset + count++]) < '\u0080') {
44 int b = in[offset + count++];
53 int b = in[offset + count++];
54 int c = in[offset + count++];
/libcore/luni/src/main/java/java/util/prefs/
H A DNodeChangeEvent.java5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
91 private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { argument
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeConfigurationException.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
44 /** Indicates whether this class is being used in a JDK 1.4 context. */
152 private void readObject(ObjectInputStream in) argument
154 in.defaultReadObject();

Completed in 533 milliseconds

123456