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

1234567891011>>

/openjdk10/jdk/test/java/io/StringReader/
H A DSkip.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
33 StringReader in = new StringReader("1234567");
36 if (in.skip(3) != 3)
38 if (in.read() != '4')
42 if (in.skip(-2) != -2)
44 if (in.read() != '3')
48 if (in.skip(-6) != -3)
50 if (in.read() != '1')
54 if (in
[all...]
H A DClosedReady.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
39 StringReader in = new StringReader("aaaaaaaaaaaaaaa");
40 in.read();
41 in.close();
44 in.ready(); // IOException should be thrown here
/openjdk10/jdk/test/java/io/PushbackInputStream/
H A DAvailable.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
36 private static void dotest(PushbackInputStream in , int expected)
40 int got = in.available();
44 RuntimeException("Unexpected number of bytes available in the PushBackInputStream");
53 PushbackInputStream in = new
56 dotest(in , 10);
58 in.read();
59 dotest(in , 9);
61 in
[all...]
H A DMarkReset.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
37 PushbackInputStream in =
39 in.mark(-5);
40 in.mark(6);
41 in.mark(Integer.MAX_VALUE);
43 in.reset();
48 in.read();
49 in.read();
51 in
[all...]
H A DSkip.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
33 private static void dotest(PushbackInputStream in, int expected) argument
38 in.unread(4);
39 in.unread(5);
40 in.unread(6);
41 in.skip(2);
42 if (in.read() != 4) {
46 one = in.read();
47 two = in
[all...]
H A DClosedStream.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
40 PushbackInputStream in = new PushbackInputStream(
42 in.unread(20);
43 in.close();
46 in.read(); //IOException must be thrown here
/openjdk10/jdk/src/java.base/share/classes/java/io/
H A DFilterReader.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
46 protected Reader in; field in class:FilterReader
51 * @param in a Reader object providing the underlying stream.
52 * @throws NullPointerException if <code>in</code> is <code>null</code>
54 protected FilterReader(Reader in) { argument
55 super(in);
56 this.in = in;
[all...]
H A DFilterInputStream.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
50 protected volatile InputStream in; field in class:FilterInputStream
54 * by assigning the argument <code>in</code>
55 * to the field <code>this.in</code> so as
58 * @param in the underlying input stream, or <code>null</code> if
61 protected FilterInputStream(InputStream in) { argument
62 this.in = in;
[all...]
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/
H A DStreamUtils.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
43 public static InputStream hasSomeData(InputStream in) { argument
44 if (in != null) {
46 if (in.available() < 1) {
47 if (!in.markSupported()) {
48 in = new BufferedInputStream(in);
50 in
[all...]
/openjdk10/jdk/test/java/io/LineNumberInputStream/
H A DMarkReset.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
35 LineNumberInputStream in = new
38 in.read();
39 in.mark(100);
40 int b1 = in.read();
41 in.reset();
42 int b2 = in.read();
H A DAvailable.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
41 LineNumberInputStream in = new LineNumberInputStream(new MyInStream());
42 check(in.available(), 5);
43 in.read();
44 in.read();
45 check(in.available(), 4);
46 in.read();
47 in.read();
48 in
[all...]
H A DSkipEOL.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
27 @summary Test for correct CR/LF handling in LineNumberInputStream.skip
39 LineNumberInputStream in =
41 long skipped = in.skip(3); // skip 3 bytes
42 if ((skipped == 3) && ((in.read()) != 11)) {
48 in = new LineNumberInputStream(new ByteArrayInputStream(data));
50 if (in.read() != expected[i]) {
/openjdk10/jdk/test/javax/imageio/
H A DReadBitsTest.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
42 ImageInputStream in = new FileCacheImageInputStream(ins,null);
44 if (in.getBitOffset() != 0) {
48 int bit0 = in.readBit(); // 1
52 if (in.getBitOffset() != 1) {
56 long bits1 = in.readBits(5); // 01010 = 10
60 if (in.getBitOffset() != 6) {
64 int bit1 = in.readBit(); // 0
68 if (in
[all...]
/openjdk10/test/lib/jdk/test/lib/hprof/parser/
H A DPositionDataInputStream.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
40 * (in effect 'position' in stream) so far.
44 public PositionDataInputStream(InputStream in) { argument
45 super(in instanceof PositionInputStream?
46 in : new PositionInputStream(in));
62 return ((PositionInputStream)in)
[all...]
/openjdk10/jdk/test/java/io/InputStream/
H A DSkip.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
35 private static void dotest(InputStream in , int curpos ,
43 "\nTotal bytes in the Stream = " + total +
48 long skipped = in.skip(toskip);
66 MyInputStream in = new MyInputStream(11);
69 dotest(in, 0, 11, -23, 0);
72 dotest(in, 0, 11, 20, 11);
75 dotest(in, -1, 11, 20, 0);
77 in
[all...]
/openjdk10/jdk/test/java/io/ByteArrayInputStream/
H A DSkip.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
33 private static void dotest(InputStream in, int curpos, long total, argument
38 "\nTotal bytes in the stream = " + total +
44 in.reset();
45 int avail = curpos >= 0 ? curpos : in.available();
46 long n = in.skip(avail);
51 long skipped = in.skip(toskip);
61 ByteArrayInputStream in = new ByteArrayInputStream(new byte[total]);
64 dotest(in,
[all...]
/openjdk10/jdk/test/sun/net/www/protocol/jar/jarbug/src/jar1/
H A DGetResource.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
32 InputStream in;
34 in = getClass().getResourceAsStream("/res1.txt");
35 in.available();
/openjdk10/jdk/test/java/util/zip/InflaterInputStream/
H A DMarkReset.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
41 InflaterInputStream in =
43 in.mark(-5);
44 in.mark(6);
45 in.mark(Integer.MAX_VALUE);
47 in.reset();
53 in.reset();
/openjdk10/jdk/src/jdk.jdwp.agent/share/native/libjdwp/
H A DInterfaceTypeImpl.c9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
32 invokeStatic(PacketInputStream *in, PacketOutputStream *out) argument
34 return sharedInvoke(in, out);
/openjdk10/langtools/test/tools/javac/Paths/
H A DHelp.sh11 # This code is distributed in the hope that it will be useful, but WITHOUT
14 # version 2 for more details (a copy is included in the LICENSE file that
49 for opt in \
57 case "$HELP" in *"$opt"*) ;; *) Fail "Bad help output" ;; esac
63 for opt in \
66 case "$XHELP" in *"$opt"*) ;; *) Fail "Bad help output" ;; esac
/openjdk10/jdk/test/java/io/BufferedInputStream/
H A DReadAfterClose.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
35 static void testRead(InputStream in) throws Exception { argument
36 in.close();
40 in.read(buf, 0, 1);
46 in.read(buf, 0, 0);
/openjdk10/jdk/test/javax/crypto/spec/IvParameterSpec/
H A DInvalidArgs.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
36 byte[] in = new byte[8];
38 IvParameterSpec iv = new IvParameterSpec(in, 0, -2);
42 IvParameterSpec iv = new IvParameterSpec(in, -2, in.length);
/openjdk10/langtools/test/tools/javap/
H A DT6622260.java9 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
27 * @summary javap prints negative bytes incorrectly in hex
66 DataInputStream in = new DataInputStream(new FileInputStream(f));
68 in.readFully(data);
69 in.close();
71 in = new DataInputStream(new ByteArrayInputStream(data));
72 in.skipBytes(4); // magic
73 in.skipBytes(2); // minor
74 in
126 skipConstantPool(DataInputStream in) argument
171 skipAttributes(DataInputStream in) argument
[all...]
/openjdk10/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/
H A DClassReader.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
42 ClassReader(ClassFile classFile, InputStream in, Attribute.Factory attributeFactory) throws IOException { argument
45 this.in = new DataInputStream(new BufferedInputStream(in));
62 DataInputStream prev = in;
63 in = new DataInputStream(new ByteArrayInputStream(data));
67 in = prev;
72 in
103 private DataInputStream in; field in class:ClassReader
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/provider/
H A DByteArrayAccess.java9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
49 * This class may also be helpful in improving the performance of the
50 * crypto code in the SunJCE provider. However, for now it is only accessible by
51 * the message digest implementation in the SUN provider.
98 static void b2iLittle(byte[] in, int inOfs, int[] out, int outOfs, int len) { argument
99 if ((inOfs < 0) || ((in.length - inOfs) < len) ||
107 out[outOfs++] = unsafe.getInt(in, (long)inOfs);
114 out[outOfs++] = reverseBytes(unsafe.getInt(in, (lon
130 b2iLittle64(byte[] in, int inOfs, int[] out) argument
179 i2bLittle(int[] in, int inOfs, byte[] out, int outOfs, int len) argument
230 b2iBig(byte[] in, int inOfs, int[] out, int outOfs, int len) argument
262 b2iBig64(byte[] in, int inOfs, int[] out) argument
311 i2bBig(int[] in, int inOfs, byte[] out, int outOfs, int len) argument
362 b2lBig(byte[] in, int inOfs, long[] out, int outOfs, int len) argument
407 b2lBig128(byte[] in, int inOfs, long[] out) argument
439 l2bBig(long[] in, int inOfs, byte[] out, int outOfs, int len) argument
470 b2lLittle(byte[] in, int inOfs, long[] out, int outOfs, int len) argument
502 l2bLittle(long[] in, int inOfs, byte[] out, int outOfs, int len) argument
[all...]

Completed in 321 milliseconds

1234567891011>>