Java InputStream Deserialize to Object deserializeFromStram(InputStream inputStram)

Here you can find the source of deserializeFromStram(InputStream inputStram)

Description

deserialize From Stram

License

Apache License

Declaration

public static Object deserializeFromStram(InputStream inputStram) throws IOException, ClassNotFoundException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.BufferedInputStream;

import java.io.IOException;
import java.io.InputStream;

import java.io.ObjectInputStream;

public class Main {
    public static Object deserializeFromStram(InputStream inputStram) throws IOException, ClassNotFoundException {
        ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(inputStram));
        Object ret = in.readObject();
        in.close();//from  ww w.j av  a2  s . c  om
        return ret;
    }
}

Related

  1. deserialize(InputStream is)
  2. deserialize(InputStream is)
  3. deserialize(InputStream sourceInputStream, Class objectType)
  4. deserialize(ObjectInputStream stream)
  5. deserialize(String input, Class tClass)
  6. deserializeFromStream(ObjectInputStream in)
  7. deserializeInt(InputStream in)
  8. deserializeSpecial(InputStream is, Class clazz)
  9. deserializeUUID(InputStream in)