Searched refs:in (Results 1 - 25 of 245) sorted by relevance

12345678910

/libcore/luni/src/main/java/java/io/
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 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 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...]
H A DPipedReader.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 * range {@code [out, in)} and written to the range {@code [in, out)}.
40 * Data in the buffer is either sequential: <pre>
44 * out in</pre>
49 * in out</pre>
50 * When the buffer is empty, {@code in == -1}. Reading when the buffer is
52 * {@code in == out}. Writing when the buffer is full will block until free
58 * The index in {
60 private int in = -1; field in class:PipedReader
[all...]
H A DInputStreamReader.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
41 private InputStream in; field in class:InputStreamReader
51 * {@code in}. This constructor sets the character converter to the encoding
52 * specified in the "file.encoding" property and falls back to ISO 8859_1
55 * @param in
58 public InputStreamReader(InputStream in) { argument
59 this(in, Charset.defaultCharset());
63 * Constructs a new InputStreamReader on the InputStream {@code in}. The
68 * @param in
77 InputStreamReader(InputStream in, final String charsetName) argument
104 InputStreamReader(InputStream in, CharsetDecoder dec) argument
121 InputStreamReader(InputStream in, Charset charset) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLBufferedInput.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
33 private ByteBuffer in; field in class:SSLBufferedInput
45 protected void setSourceBuffer(ByteBuffer in) { argument
47 this.in = in;
52 // in assumption that the buffer has been set
53 return in.remaining();
64 * Reads the following byte value. If there are no bytes in the source
71 bytik = in
[all...]
H A DSSLStreamedInput.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
29 private InputStream in; field in class:SSLStreamedInput
31 public SSLStreamedInput(InputStream in) { argument
32 this.in = in;
37 return in.available();
50 int res = in.read();
H A DClientHello.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
84 * @param in
88 public ClientHello(HandshakeIODataStream in, int length) throws IOException { argument
90 client_version[0] = (byte) in.readUint8();
91 client_version[1] = (byte) in.readUint8();
92 Streams.readFully(in, random);
93 int size = in.read();
95 in.read(session_id, 0, size);
96 int l = in
128 ClientHello(HandshakeIODataStream in) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
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 DASN1Any.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
72 public Object decode(BerInputStream in) throws IOException { argument
74 in.readContent();
76 if (in.isVerify) {
79 return getDecodedObject(in);
86 * @param in BER input stream
89 public Object getDecodedObject(BerInputStream in) throws IOException { argument
90 byte[] bytesEncoded = new byte[in.offset - 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 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 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 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);
H A DASN1SetOf.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.readSetOf(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
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 DASN1Implicit.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
102 public Object decode(BerInputStream in) throws IOException { argument
103 if (!checkTag(in.tag)) {
106 "[" + in.tagOffset + "]. Expected tag: " + Integer.toHexString(id) + ", " +
107 "but got " + Integer.toHexString(in.tag));
111 if (id == in.tag) {
112 in.tag = type.id;
114 in.tag = type.constrId;
116 in
[all...]
H A DASN1StringType.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 @Override public Object getDecodedObject(BerInputStream in) throws IOException {
63 return new String(in.buffer, in.contentOffset, in.length, Charsets.UTF_8);
88 public Object decode(BerInputStream in) throws IOException { argument
89 in.readString(this);
91 if (in.isVerify) {
94 return getDecodedObject(in);
100 getDecodedObject(BerInputStream in) argument
[all...]
H A DASN1Integer.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
54 * that is represented as byte array in two's-complement notation.
62 public Object decode(BerInputStream in) throws IOException { argument
63 in.readInteger();
65 if (in.isVerify) {
68 return getDecodedObject(in);
76 public Object getDecodedObject(BerInputStream in) throws IOException { argument
77 byte[] bytesEncoded = new byte[in.length];
78 System.arraycopy(in
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONTokener.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
65 private final String in; field in class:JSONTokener
74 * @param in JSON encoded string. Null is not permitted and will yield a
78 public JSONTokener(String in) { argument
80 if (in != null && in.startsWith("\ufeff")) {
81 in = in.substring(1);
83 this.in
[all...]
/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...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterInputStreamTest.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
32 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data));
35 assertEquals(1, in.available());
37 while ((b = in.read()) != -1) {
40 assertEquals(0, in.available());
44 in.close();
46 in.available();
53 java.io.InputStream in = new InflaterInputStream(new ByteArrayInputStream(bytes));
57 while ((count = in
[all...]

Completed in 289 milliseconds

12345678910