IT. Expert System.

Android Reference

ObjectOutputStream.PutField


java.io

Class ObjectOutputStream.PutField

  • Enclosing class:
    ObjectOutputStream


    public abstract static class ObjectOutputStream.PutField
    extends Object
    PutField is an inner class to provide access to the persistent fields that are written to the target stream.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      abstract void put(String name, boolean value)
      Puts the value of the boolean field identified by name to the persistent field.
      abstract void put(String name, byte value)
      Puts the value of the byte field identified by name to the persistent field.
      abstract void put(String name, char value)
      Puts the value of the character field identified by name to the persistent field.
      abstract void put(String name, double value)
      Puts the value of the double field identified by name to the persistent field.
      abstract void put(String name, float value)
      Puts the value of the float field identified by name to the persistent field.
      abstract void put(String name, int value)
      Puts the value of the integer field identified by name to the persistent field.
      abstract void put(String name, long value)
      Puts the value of the long field identified by name to the persistent field.
      abstract void put(String name, Object value)
      Puts the value of the Object field identified by name to the persistent field.
      abstract void put(String name, short value)
      Puts the value of the short field identified by name to the persistent field.
      abstract void write(ObjectOutput out)
      Deprecated.
      This method is unsafe and may corrupt the target stream. Use ObjectOutputStream#writeFields() instead.
    • Constructor Detail

      • ObjectOutputStream.PutField

        public ObjectOutputStream.PutField()
    • Method Detail

      • put

        public abstract void put(String name,
               boolean value)
        Puts the value of the boolean field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               char value)
        Puts the value of the character field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               byte value)
        Puts the value of the byte field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               short value)
        Puts the value of the short field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               int value)
        Puts the value of the integer field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               long value)
        Puts the value of the long field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               float value)
        Puts the value of the float field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               double value)
        Puts the value of the double field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • put

        public abstract void put(String name,
               Object value)
        Puts the value of the Object field identified by name to the persistent field.
        Parameters:
        name - the name of the field to serialize.
        value - the value that is put to the persistent field.
      • write

        @Deprecated
        public abstract void write(ObjectOutput out)
                            throws IOException
        Deprecated. This method is unsafe and may corrupt the target stream. Use ObjectOutputStream#writeFields() instead.
        Writes the fields to the target stream out.
        Parameters:
        out - the target stream
        Throws:
        IOException - if an error occurs while writing to the target stream.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2125 / . Delta: 0.03365 с