KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > io > ObjectInputStream

java.io
Class ObjectInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants
See Also:
Top Examples, Source Code, ObjectOutputStream, Serializable

public int available()
              throws IOException
See Also:
InputStream, ObjectInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[968]deadlock
By Anonymous on 2004/10/01 14:45:11  Rate
ObjectInputStream and ObjectOutputStream. 
  
  
 If you try to execute the following code with a input and output stream that are somehow coupled:  
     localin = new ObjectInputStream ( input_stream ) ; 
     localout= new ObjectOutputStream ( output_stream ) ; 
  
  
 you get some kind of deadlock. The following will work:  
     localout= new ObjectOutputStream ( output_stream ) ; 
     localin = new ObjectInputStream ( input_stream ) ; 
  
  
 


public void close()
           throws IOException
See Also:
InputStream, ObjectInput, Closeable
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void defaultReadObject()
                       throws IOException,
                              ClassNotFoundException
See Also:
NotActiveException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean enableResolveObject(boolean enable)
                               throws SecurityException
See Also:
SerializablePermission, SecurityManager.checkPermission(java.security.Permission)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ObjectInputStream()
                     throws IOException,
                            SecurityException
See Also:
SerializablePermission, SecurityManager.checkPermission(java.security.Permission)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ObjectInputStream(InputStream in)
                  throws IOException
See Also:
ObjectOutputStream.ObjectOutputStream(OutputStream), readFields(), ObjectInputStream(), NullPointerException, SecurityException, StreamCorruptedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read()
         throws IOException
See Also:
InputStream, ObjectInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int read(byte[] buf,
                int off,
                int len)
         throws IOException
See Also:
DataInputStream.readFully(byte[],int,int), InputStream, ObjectInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean readBoolean()
                    throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public byte readByte()
              throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public char readChar()
              throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected ObjectStreamClass readClassDescriptor()
                                         throws IOException,
                                                ClassNotFoundException
See Also:
ObjectOutputStream.writeClassDescriptor(java.io.ObjectStreamClass)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double readDouble()
                  throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ObjectInputStream.GetField readFields()
                                      throws IOException,
                                             ClassNotFoundException
See Also:
NotActiveException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float readFloat()
                throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void readFully(byte[] buf)
               throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void readFully(byte[] buf,
                      int off,
                      int len)
               throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int readInt()
            throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public String readLine()
                throws IOException
See Also:
DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long readLong()
              throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final Object readObject()
                        throws IOException,
                               ClassNotFoundException
See Also:
OptionalDataException, StreamCorruptedException, InvalidClassException, ObjectInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Object readObjectOverride()
                             throws IOException,
                                    ClassNotFoundException
See Also:
readObject(), ObjectInputStream(), OptionalDataException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public short readShort()
                throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void readStreamHeader()
                         throws IOException,
                                StreamCorruptedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object readUnshared()
                    throws IOException,
                           ClassNotFoundException
See Also:
OptionalDataException, ObjectStreamException, StreamCorruptedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int readUnsignedByte()
                     throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int readUnsignedShort()
                      throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String readUTF()
               throws IOException
See Also:
UTFDataFormatException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void registerValidation(ObjectInputValidation obj,
                               int prio)
                        throws NotActiveException,
                               InvalidObjectException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Class<?> resolveClass(ObjectStreamClass desc)
                         throws IOException,
                                ClassNotFoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Object resolveObject(Object obj)
                        throws IOException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Class<?> resolveProxyClass(String[] interfaces)
                              throws IOException,
                                     ClassNotFoundException
See Also:
ObjectOutputStream.annotateProxyClass(Class)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int skipBytes(int len)
              throws IOException
See Also:
EOFException, DataInput
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags