/openjdk7/jdk/test/java/io/StringReader/ |
H A D | Skip.java | 9 * 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 D | ClosedReady.java | 9 * 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
|
/openjdk7/jdk/test/java/io/PushbackInputStream/ |
H A D | Available.java | 9 * 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 D | MarkReset.java | 9 * 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 D | Skip.java | 9 * 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 D | ClosedStream.java | 9 * 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
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | FilterReader.java | 9 * 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 D | FilterInputStream.java | 9 * 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...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ |
H A D | StreamUtils.java | 9 * 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...] |
/openjdk7/jdk/test/java/io/LineNumberInputStream/ |
H A D | MarkReset.java | 9 * 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 D | Available.java | 9 * 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 D | SkipEOL.java | 9 * 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]) {
|
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/ |
H A D | HttpSendInputStream.java | 9 * 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 * @param in the InputStream to filter from 45 public HttpSendInputStream(InputStream in, HttpSendSocket owner) argument 48 super(in); 60 in = null; 68 if (in == null) 69 in = owner.readNotify(); 70 return in [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ |
H A D | PositionDataInputStream.java | 9 * 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...] |
/openjdk7/jdk/test/java/io/ByteArrayInputStream/ |
H A D | Skip.java | 9 * 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...] |
/openjdk7/jdk/test/java/io/InputStream/ |
H A D | Skip.java | 9 * 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...] |
/openjdk7/jdk/test/sun/net/www/protocol/jar/jarbug/src/jar1/ |
H A D | GetResource.java | 9 * 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();
|
/openjdk7/jdk/test/java/util/zip/InflaterInputStream/ |
H A D | MarkReset.java | 9 * 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();
|
/openjdk7/langtools/test/tools/javac/Paths/ |
H A D | Help.sh | 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 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
|
/openjdk7/jdk/test/java/io/BufferedInputStream/ |
H A D | ReadAfterClose.java | 9 * 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);
|
/openjdk7/jdk/test/javax/crypto/spec/IvParameterSpec/ |
H A D | InvalidArgs.java | 9 * 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);
|
/openjdk7/langtools/test/tools/javap/ |
H A D | T6622260.java | 9 * 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 65 DataInputStream in = new DataInputStream(new FileInputStream(f)); 67 in.readFully(data); 68 in.close(); 70 in = new DataInputStream(new ByteArrayInputStream(data)); 71 in.skipBytes(4); // magic 72 in.skipBytes(2); // minor 73 in 125 skipConstantPool(DataInputStream in) argument 170 skipAttributes(DataInputStream in) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/classfile/ |
H A D | ClassReader.java | 9 * 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 41 ClassReader(ClassFile classFile, InputStream in, Attribute.Factory attributeFactory) throws IOException { argument 47 this.in = new DataInputStream(new BufferedInputStream(in)); 65 DataInputStream prev = in; 66 in = new DataInputStream(new ByteArrayInputStream(data)); 70 in = prev; 75 in 106 private DataInputStream in; field in class:ClassReader [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/validation/ |
H A D | Util.java | 9 * you may not use this file except in compliance with the License. 14 * Unless required by applicable law or agreed to in writing, software 43 public static final XMLInputSource toXMLInputSource( StreamSource in ) { 44 if( in.getReader()!=null ) 46 in.getPublicId(), in.getSystemId(), in.getSystemId(), 47 in.getReader(), null ); 48 if( in.getInputStream()!=null ) 50 in [all...] |
/openjdk7/jdk/test/java/io/Serializable/defaultDataEnd/ |
H A D | DefaultDataEnd.java | 9 * 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 26 * @summary Verify that a custom readObject() method reading in data written 37 private void readObject(ObjectInputStream in) argument 40 in.defaultReadObject(); 41 if (in.read() != -1) { 45 in.readInt(); 50 in.readObject(); 58 in.readUnshared(); 72 private void readObject(ObjectInputStream in) argument 104 readObject(ObjectInputStream in) argument [all...] |