title: How to make BufferedInputStream Serializable?
body: <p>I need to make java BufferedInputStream Serializable. Are there any alternatives or any other way to implement it?</p>
  
  <p>Do yo see any issue in this implementation</p>
  
  <pre><code>import java.io.BufferedInputStream;
  import java.io.InputStream;
  import java.io.Serializable;
  
  public class SerializableBufferedInputStream extends BufferedInputStream implements Serializable
  {
    public SerializableBufferedInputStream(InputStream in)
    {
      super(in);
    }
  
    public SerializableBufferedInputStream(InputStream in, int size)
    {
      super(in, size);
    }
  }
  </code></pre>