/openjdk7/jdk/test/java/io/Serializable/auditStreamSubclass/ |
H A D | AuditStreamSubclass.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 59 GoodOIS1(InputStream in) throws IOException { super(in); } argument 63 GoodOIS2(InputStream in) throws IOException { super(in); } argument 67 BadOIS1(InputStream in) throws IOException { super(in); } argument 74 BadOIS2(InputStream in) throws IOException { super(in); } argument 81 BadOIS3(InputStream in) argument [all...] |
/openjdk7/jdk/test/java/io/Serializable/classDescHooks/ |
H A D | ClassDescHooks.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 69 CustomInputStream(InputStream in) throws IOException { argument 70 super(in); 125 // make sure write hook not called when old protocol in use
|
/openjdk7/jdk/test/java/io/Serializable/noSuchFieldClarification/ |
H A D | NoSuchFieldClarification.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 69 private void readObject(ObjectInputStream in) argument 72 ObjectInputStream.GetField fields = in.readFields();
|
/openjdk7/jdk/test/java/io/Serializable/oldTests/ |
H A D | AnnotateClass.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 91 * so that it can be verified in ObjectInputStream. 129 TestInputStream(InputStream in) throws IOException { argument 130 super(in); 155 /** If the object in the stream is a StdStream,
|
/openjdk7/jdk/test/java/io/Serializable/proxy/ |
H A D | Basic.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 73 ProxyBlindInputStream(InputStream in) throws IOException { super(in); } argument
|
/openjdk7/jdk/test/java/io/Serializable/replaceStringArray/ |
H A D | ReplaceStringArray.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 96 public SubstituteObjectInputStream(InputStream in) throws IOException { argument 97 super(in); 165 SubstituteObjectInputStream in = 167 a = (A)in.readObject(); 168 in.close(); 171 if (in.numStringsReplaced != 4) 173 " only " + in.numStringsReplaced + " strings were resolved."); 174 if (in [all...] |
/openjdk7/jdk/test/java/io/Serializable/skipToEndOfBlockData/ |
H A D | SkipToEndOfBlockData.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 49 private void readObject(ObjectInputStream in) argument 52 i = in.readInt(); 53 f = in.readFloat(); 83 public void readExternal(ObjectInput in) throws IOException { argument 84 i = in.readInt(); 85 f = in.readFloat();
|
/openjdk7/jdk/test/java/io/Serializable/typeSafeEnum/ |
H A D | TypeSafeEnum.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 76 private void readObject(ObjectInputStream in) argument 80 in.defaultReadObject(); 85 in.registerValidation(this, 0); 144 ObjectInputStream in = 146 readArray = (TypeSafeEnum[])in.readObject(); 147 in.close();
|
/openjdk7/jdk/test/java/net/URLConnection/ |
H A D | ResendPostBody.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 51 InputStream in; field in class:ResendPostBody.Server 67 int b = in.read(); 90 in = sock.getInputStream (); 128 System.in.read ();
|
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/protocol/https/NewImpl/ |
H A D | ComHostnameVerifier.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 // system properties in samevm/agentvm mode. 58 * Should we run the client or server in a separate thread? 87 private static String getPath(DataInputStream in) argument 90 String line = in.readLine(); 105 line = in.readLine(); 160 DataInputStream in = 162 String path = getPath(in); 165 // send bytecodes in respons [all...] |
H A D | JavaxHostnameVerifier.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 // system properties in samevm/agentvm mode. 56 * Should we run the client or server in a separate thread? 85 private static String getPath(DataInputStream in) argument 88 String line = in.readLine(); 104 line = in.readLine(); 159 DataInputStream in = 161 String path = getPath(in); 164 // send bytecodes in respons [all...] |
/openjdk7/jdk/test/sun/security/util/Oid/ |
H A D | S11N.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 57 // Do not use j.u.Base64, the test needs to run in jdk6 131 private static void check(byte[] in, String oid) throws Exception { argument 133 new ObjectInputStream(new ByteArrayInputStream(in)).readObject()); 155 // Do not use diamond operator, this test is also meant to run in jdk6
|
/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/jdk/src/share/classes/sun/security/jgss/spnego/ |
H A D | NegTokenInit.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 36 * as specified in RFC 2478 85 public NegTokenInit(byte[] in) throws GSSException { argument 87 parseToken(in); 129 // insert in a SEQUENCE 141 private void parseToken(byte[] in) throws GSSException { argument 143 DerValue der = new DerValue(in); 210 // to find the mechs in SPNEG [all...] |
H A D | NegTokenTarg.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 36 * as specified in RFC 2478 73 public NegTokenTarg(byte[] in) throws GSSException { argument 75 parseToken(in); 130 // insert in a SEQUENCE 142 private void parseToken(byte[] in) throws GSSException { argument 144 DerValue der = new DerValue(in); 201 // to find the supported mech in SPNEG [all...] |
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | CipherSuiteList.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 101 * Read a CipherSuiteList from a HandshakeInStream in V3 ClientHello 105 CipherSuiteList(HandshakeInStream in) throws IOException { argument 106 byte[] bytes = in.getBytes16(); 145 * Return an Iterator for the CipherSuites in this list. 160 * Return the number of CipherSuites in this list. 167 * Return an array with the names of the CipherSuites in this list. 185 * Write this list to an HandshakeOutStream in V [all...] |
/openjdk7/jdk/src/share/classes/sun/security/x509/ |
H A D | CertificateAlgorithmId.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 56 * using this identifier the associated object being passed in or 74 * @param in the DerInputStream to read the serial number from. 77 public CertificateAlgorithmId(DerInputStream in) throws IOException { argument 78 DerValue val = in.getDerValue(); 85 * @param in the InputStream to read the serial number from. 88 public CertificateAlgorithmId(InputStream in) throws IOException { argument 89 DerValue val = new DerValue(in); [all...] |
H A D | CertificateIssuerUniqueIdentity.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 69 * @param in the DerInputStream to read the UniqueIdentity from. 72 public CertificateIssuerUniqueIdentity(DerInputStream in) argument 74 id = new UniqueIdentity(in); 80 * @param in the InputStream to read the UniqueIdentity from. 83 public CertificateIssuerUniqueIdentity(InputStream in) argument 85 DerValue val = new DerValue(in); 92 * @param in th [all...] |
H A D | CertificateSubjectUniqueIdentity.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 68 * @param in the DerInputStream to read the UniqueIdentity from. 71 public CertificateSubjectUniqueIdentity(DerInputStream in) argument 73 id = new UniqueIdentity(in); 79 * @param in the InputStream to read the UniqueIdentity from. 82 public CertificateSubjectUniqueIdentity(InputStream in) argument 84 DerValue val = new DerValue(in); 91 * @param in th [all...] |
H A D | CertificateX509Key.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 70 * @param in the DerInputStream to read the X509Key from. 73 public CertificateX509Key(DerInputStream in) throws IOException { argument 74 DerValue val = in.getDerValue(); 81 * @param in the InputStream to read the X509Key from. 84 public CertificateX509Key(InputStream in) throws IOException { argument 85 DerValue val = new DerValue(in); 98 * Encode the key in DE [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/java/ |
H A D | BinaryAttribute.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 58 public static BinaryAttribute load(DataInputStream in, BinaryConstantPool cpool, int mask) throws IOException { argument 60 int natt = in.readUnsignedShort(); // JVM 4.6 method_info.attrutes_count 64 Identifier id = cpool.getIdentifier(in.readUnsignedShort()); 66 int len = in.readInt(); 69 in.skipBytes(len); 72 in.readFully(data);
|
H A D | ScannerInputReader.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 * position in the input stream. 66 public ScannerInputReader(Environment env, InputStream in) argument 73 new InputStreamReader(in, env.getCharacterEncoding()) : 74 new InputStreamReader(in)); 96 // The number of characters in the buffer. -1 if EOF is reached. 101 * Note: this method has been inlined by hand in the `read' method 106 // Check to see if we have either run out of characters in ou [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jinfo/ |
H A D | JInfo.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 118 InputStream in; 123 in = ((HotSpotVirtualMachine)vm).setFlag(flag, value); 129 in = ((HotSpotVirtualMachine)vm).setFlag(flag, "1"); 133 in = ((HotSpotVirtualMachine)vm).setFlag(flag, "0"); 137 in = ((HotSpotVirtualMachine)vm).printFlag(flag); 142 drain(vm, in); 162 private static void drain(VirtualMachine vm, InputStream in) throw argument [all...] |
/openjdk7/jdk/test/java/rmi/server/useCustomRef/ |
H A D | UseCustomRef.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 * even though this test's code is granted that permission in its policy file. 88 * create object with custom ref and bind in registry 100 System.err.println("binding object in registry..."); 111 * pass object with custom ref in remote call 113 System.err.println("pass object in remote call..."); 130 ObjectInputStream in = new ObjectInputStream( 132 cr = (UseCustomRef) in.readObject(); 180 protected void unmarshalCustomCallData(ObjectInput in) argument [all...] |
/openjdk7/jdk/test/java/util/zip/ |
H A D | DataDescriptor.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 * a regression. The value of the general purpose flag bit in a LOC header is 41 * in the DataDescriptor after the data itself is written. However, when the 47 * The result is an invalid LOC header in zipbytes2. So when we again use 49 * the non-existent EXT header, and at that position in the file is some 53 static void copyZip(ZipInputStream in, ZipOutputStream out) throws IOException { argument 55 for (ZipEntry ze; (ze = in.getNextEntry()) != null; ) { 59 for (int nr; 0 < (nr = in.read(buffer)); ) { 63 in [all...] |