From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- .../com/sleepycat/bind/serial/SerialOutput.html | 668 ++++++++++----------- 1 file changed, 333 insertions(+), 335 deletions(-) (limited to 'docs/java/com/sleepycat/bind/serial/SerialOutput.html') diff --git a/docs/java/com/sleepycat/bind/serial/SerialOutput.html b/docs/java/com/sleepycat/bind/serial/SerialOutput.html index a2b09fd6..7722ca0c 100644 --- a/docs/java/com/sleepycat/bind/serial/SerialOutput.html +++ b/docs/java/com/sleepycat/bind/serial/SerialOutput.html @@ -1,366 +1,364 @@ - - - - - -SerialOutput (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.bind.serial -
-Class SerialOutput

-
-java.lang.Object
-  extended by java.io.OutputStream
-      extended by java.io.ObjectOutputStream
-          extended by com.sleepycat.bind.serial.SerialOutput
-
-
-
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants
-
-
-
-
public class SerialOutput
extends ObjectOutputStream
- - -

-A specialized ObjectOutputStream that stores class description +

+
com.sleepycat.bind.serial
+

Class SerialOutput

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, java.io.ObjectStreamConstants, java.lang.AutoCloseable
    +
    +
    +
    +
    public class SerialOutput
    +extends java.io.ObjectOutputStream
    +
    A specialized ObjectOutputStream that stores class description information in a ClassCatalog. It is used by SerialBinding. -

    This class is used instead of an ObjectOutputStream, which it +

    This class is used instead of an ObjectOutputStream, which it extends, to write a compact object stream. For writing objects to a - database normally one of the serial binding classes is used. SerialOutput is used when an ObjectOutputStream is needed along - with compact storage. A ClassCatalog must be supplied, however, to + database normally one of the serial binding classes is used. SerialOutput is used when an ObjectOutputStream is needed along + with compact storage. A ClassCatalog must be supplied, however, to stored shared class descriptions.

    -

    The ClassCatalog is used to store class definitions rather than +

    The ClassCatalog is used to store class definitions rather than embedding these into the stream. Instead, a class format identifier is - embedded into the stream. This identifier is then used by SerialInput to load the class format to deserialize the object.

    -

    - -

    -

    -
    See Also:
    Class Evolution
    -
    - -

    + embedded into the stream. This identifier is then used by SerialInput to load the class format to deserialize the object.

    +
    See Also:
    Class Evolution
    +
  • +
+
+
+ +
+
+
    +
  • - - - - - - -
    -Constructor Detail
    - -

    -SerialOutput

    -
    -public SerialOutput(OutputStream out,
    -                    ClassCatalog classCatalog)
    -             throws IOException
    -
    -
    Creates a serial output stream. -

    -

    -
    Parameters:
    out - is the output stream to which the compact serialized objects - will be written.
    classCatalog - is the catalog to which the class descriptions for - the serialized objects will be written. -
    Throws: -
    IOException
    -
    - +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SerialOutput

        +
        public SerialOutput(java.io.OutputStream out,
        +            ClassCatalog classCatalog)
        +             throws java.io.IOException
        +
        Creates a serial output stream.
        +
        Parameters:
        out - is the output stream to which the compact serialized objects + will be written.
        classCatalog - is the catalog to which the class descriptions for + the serialized objects will be written.
        +
        Throws:
        +
        java.io.IOException
        +
      • +
      +
    • +
    - - - - - - -
    -Method Detail
    - -

    -writeClassDescriptor

    -
    -protected void writeClassDescriptor(ObjectStreamClass classdesc)
    -                             throws IOException
    -
    -
    -
    Overrides:
    writeClassDescriptor in class ObjectOutputStream
    -
    -
    - -
    Throws: -
    IOException
    -
    -
    -
    - -

    -getStreamHeader

    -
    -public static byte[] getStreamHeader()
    -
    -
    Returns the fixed stream header used for all serialized streams in +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        writeClassDescriptor

        +
        protected void writeClassDescriptor(java.io.ObjectStreamClass classdesc)
        +                             throws java.io.IOException
        +
        +
        Overrides:
        +
        writeClassDescriptor in class java.io.ObjectOutputStream
        +
        Throws:
        +
        java.io.IOException
        +
      • +
      + + + +
        +
      • +

        getStreamHeader

        +
        public static byte[] getStreamHeader()
        +
        Returns the fixed stream header used for all serialized streams in PROTOCOL_VERSION_2 format. To save space this header can be removed and serialized streams before storage and inserted before deserializing. - SerialOutput always uses PROTOCOL_VERSION_2 serialization format - to guarantee that this header is fixed. SerialBinding removes - this header from serialized streams automatically. -

        -

        - -
        Returns:
        the fixed stream header.
        -
        -
    + SerialOutput always uses PROTOCOL_VERSION_2 serialization format + to guarantee that this header is fixed. SerialBinding removes + this header from serialized streams automatically.
+
Returns:
the fixed stream header.
+ + + + + + +
+ -
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1