Java Code Examples for java.io.ObjectOutputStream.PutField#put()
The following examples show how to use
java.io.ObjectOutputStream.PutField#put() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InetAddress.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 2
Source File: InetAddress.java From j2objc with Apache License 2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { // Android-changed : Don't use null to mean the boot classloader. if (getClass().getClassLoader() != BOOT_CLASSLOADER) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().hostName); pf.put("address", holder().address); pf.put("family", holder().family); s.writeFields(); s.flush(); }
Example 3
Source File: InetAddress.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 4
Source File: InetAddress.java From jdk-1.7-annotated with Apache License 2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().hostName); pf.put("address", holder().address); pf.put("family", holder().family); s.writeFields(); }
Example 5
Source File: InetAddress.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 6
Source File: InetAddress.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 7
Source File: InetAddress.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 8
Source File: InetAddress.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 9
Source File: InetAddress.java From hottub with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 10
Source File: InetAddress.java From Java8CN with Apache License 2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 11
Source File: InetAddress.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 12
Source File: InetAddress.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 13
Source File: InetAddress.java From Bytecoder with Apache License 2.0 | 5 votes |
@java.io.Serial private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 14
Source File: InetAddress.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 15
Source File: InetAddress.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 16
Source File: InetAddress.java From JDKSourceCode1.8 with MIT License | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 17
Source File: InetAddress.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 18
Source File: InetAddress.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 19
Source File: InetAddress.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private void writeObject (ObjectOutputStream s) throws IOException { if (getClass().getClassLoader() != null) { throw new SecurityException ("invalid address type"); } PutField pf = s.putFields(); pf.put("hostName", holder().getHostName()); pf.put("address", holder().getAddress()); pf.put("family", holder().getFamily()); s.writeFields(); }
Example 20
Source File: SimpleRoleGroup.java From lams with GNU General Public License v2.0 | 4 votes |
private void writeObject(ObjectOutputStream out) throws IOException { PutField putFields = out.putFields(); putFields.put("roles", new ArrayList<Role>(this.roles)); out.writeFields(); }