GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.serialization
  • ObjectDecoderInputStream

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ObjectDecoderInputStream (Netty API Reference (4.1.141.Final))

Class ObjectDecoderInputStream

java.lang.Object
java.io.InputStream
io.netty.handler.codec.serialization.ObjectDecoderInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, AutoCloseable

@Deprecated public class ObjectDecoderInputStream extends InputStream implements ObjectInput
Deprecated.
This class has been deprecated with no replacement, because serialization can be a security liability
An ObjectInput which is interoperable with ObjectEncoder and ObjectEncoderOutputStream.

Security: serialization can be a security liability, and should not be used without defining a list of classes that are allowed to be desirialized. Such a list can be specified with the jdk.serialFilter system property, for instance. See the serialization filtering article for more information.

  • Constructor Summary

    Constructors
    Constructor
    Description
    ObjectDecoderInputStream(InputStream in)
    Deprecated.
    Creates a new ObjectInput.
    ObjectDecoderInputStream(InputStream in, int maxObjectSize)
    Deprecated.
    Creates a new ObjectInput.
    ObjectDecoderInputStream(InputStream in, ClassLoader classLoader)
    Deprecated.
    Creates a new ObjectInput.
    ObjectDecoderInputStream(InputStream in, ClassLoader classLoader, int maxObjectSize)
    Deprecated.
    Creates a new ObjectInput.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    available()
    Deprecated.
     
    void
    close()
    Deprecated.
     
    void
    mark(int readlimit)
    Deprecated.
     
    boolean
    markSupported()
    Deprecated.
     
    int
    read()
    Deprecated.
     
    final int
    read(byte[] b)
    Deprecated.
     
    final int
    read(byte[] b, int off, int len)
    Deprecated.
     
    final boolean
    readBoolean()
    Deprecated.
     
    final byte
    readByte()
    Deprecated.
     
    final char
    readChar()
    Deprecated.
     
    final double
    readDouble()
    Deprecated.
     
    final float
    readFloat()
    Deprecated.
     
    final void
    readFully(byte[] b)
    Deprecated.
     
    final void
    readFully(byte[] b, int off, int len)
    Deprecated.
     
    final int
    readInt()
    Deprecated.
     
    final String
    readLine()
    Deprecated.
    Use BufferedReader.readLine() instead.
    final long
    readLong()
    Deprecated.
     
    Object
    readObject()
    Deprecated.
     
    final short
    readShort()
    Deprecated.
     
    final int
    readUnsignedByte()
    Deprecated.
     
    final int
    readUnsignedShort()
    Deprecated.
     
    final String
    readUTF()
    Deprecated.
     
    void
    reset()
    Deprecated.
     
    long
    skip(long n)
    Deprecated.
     
    final int
    skipBytes(int n)
    Deprecated.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectDecoderInputStream

      public ObjectDecoderInputStream(InputStream in)
      Deprecated.
      Creates a new ObjectInput.
      Parameters:
      in - the InputStream where the serialized form will be read from
    • ObjectDecoderInputStream

      public ObjectDecoderInputStream(InputStream in, ClassLoader classLoader)
      Deprecated.
      Creates a new ObjectInput.
      Parameters:
      in - the InputStream where the serialized form will be read from
      classLoader - the ClassLoader which will load the class of the serialized object
    • ObjectDecoderInputStream

      public ObjectDecoderInputStream(InputStream in, int maxObjectSize)
      Deprecated.
      Creates a new ObjectInput.
      Parameters:
      in - the InputStream where the serialized form will be read from
      maxObjectSize - the maximum byte length of the serialized object. if the length of the received object is greater than this value, a StreamCorruptedException will be raised.
    • ObjectDecoderInputStream

      public ObjectDecoderInputStream(InputStream in, ClassLoader classLoader, int maxObjectSize)
      Deprecated.
      Creates a new ObjectInput.
      Parameters:
      in - the InputStream where the serialized form will be read from
      classLoader - the ClassLoader which will load the class of the serialized object
      maxObjectSize - the maximum byte length of the serialized object. if the length of the received object is greater than this value, a StreamCorruptedException will be raised.
  • Method Details

    • readObject

      public Object readObject() throws ClassNotFoundException, IOException
      Deprecated.
      Specified by:
      readObject in interface ObjectInput
      Throws:
      ClassNotFoundException
      IOException
    • available

      public int available() throws IOException
      Deprecated.
      Specified by:
      available in interface ObjectInput
      Overrides:
      available in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Deprecated.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface ObjectInput
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • mark

      public void mark(int readlimit)
      Deprecated.
      Overrides:
      mark in class InputStream
    • markSupported

      public boolean markSupported()
      Deprecated.
      Overrides:
      markSupported in class InputStream
    • read

      public int read() throws IOException
      Deprecated.
      Specified by:
      read in interface ObjectInput
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public final int read(byte[] b, int off, int len) throws IOException
      Deprecated.
      Specified by:
      read in interface ObjectInput
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • read

      public final int read(byte[] b) throws IOException
      Deprecated.
      Specified by:
      read in interface ObjectInput
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • readBoolean

      public final boolean readBoolean() throws IOException
      Deprecated.
      Specified by:
      readBoolean in interface DataInput
      Throws:
      IOException
    • readByte

      public final byte readByte() throws IOException
      Deprecated.
      Specified by:
      readByte in interface DataInput
      Throws:
      IOException
    • readChar

      public final char readChar() throws IOException
      Deprecated.
      Specified by:
      readChar in interface DataInput
      Throws:
      IOException
    • readDouble

      public final double readDouble() throws IOException
      Deprecated.
      Specified by:
      readDouble in interface DataInput
      Throws:
      IOException
    • readFloat

      public final float readFloat() throws IOException
      Deprecated.
      Specified by:
      readFloat in interface DataInput
      Throws:
      IOException
    • readFully

      public final void readFully(byte[] b, int off, int len) throws IOException
      Deprecated.
      Specified by:
      readFully in interface DataInput
      Throws:
      IOException
    • readFully

      public final void readFully(byte[] b) throws IOException
      Deprecated.
      Specified by:
      readFully in interface DataInput
      Throws:
      IOException
    • readInt

      public final int readInt() throws IOException
      Deprecated.
      Specified by:
      readInt in interface DataInput
      Throws:
      IOException
    • readLine

      @Deprecated public final String readLine() throws IOException
      Deprecated.
      Use BufferedReader.readLine() instead.
      Specified by:
      readLine in interface DataInput
      Throws:
      IOException
    • readLong

      public final long readLong() throws IOException
      Deprecated.
      Specified by:
      readLong in interface DataInput
      Throws:
      IOException
    • readShort

      public final short readShort() throws IOException
      Deprecated.
      Specified by:
      readShort in interface DataInput
      Throws:
      IOException
    • readUnsignedByte

      public final int readUnsignedByte() throws IOException
      Deprecated.
      Specified by:
      readUnsignedByte in interface DataInput
      Throws:
      IOException
    • readUnsignedShort

      public final int readUnsignedShort() throws IOException
      Deprecated.
      Specified by:
      readUnsignedShort in interface DataInput
      Throws:
      IOException
    • readUTF

      public final String readUTF() throws IOException
      Deprecated.
      Specified by:
      readUTF in interface DataInput
      Throws:
      IOException
    • reset

      public void reset() throws IOException
      Deprecated.
      Overrides:
      reset in class InputStream
      Throws:
      IOException
    • skip

      public long skip(long n) throws IOException
      Deprecated.
      Specified by:
      skip in interface ObjectInput
      Overrides:
      skip in class InputStream
      Throws:
      IOException
    • skipBytes

      public final int skipBytes(int n) throws IOException
      Deprecated.
      Specified by:
      skipBytes in interface DataInput
      Throws:
      IOException
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.