2017-04-01 17:36:06 -07:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace SharpCifs.Util.Sharpen
|
|
|
|
{
|
|
|
|
internal class ObjectInputStream : InputStream
|
2017-07-07 20:12:21 -07:00
|
|
|
{
|
|
|
|
private BinaryReader _reader;
|
2017-04-01 17:36:06 -07:00
|
|
|
|
2017-07-07 20:12:21 -07:00
|
|
|
public ObjectInputStream (InputStream s)
|
|
|
|
{
|
|
|
|
_reader = new BinaryReader (s.GetWrappedStream ());
|
|
|
|
}
|
2017-04-01 17:36:06 -07:00
|
|
|
|
2017-07-07 20:12:21 -07:00
|
|
|
public int ReadInt ()
|
|
|
|
{
|
|
|
|
return _reader.ReadInt32 ();
|
|
|
|
}
|
2017-04-01 17:36:06 -07:00
|
|
|
|
2017-07-07 20:12:21 -07:00
|
|
|
public object ReadObject ()
|
|
|
|
{
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
}
|
2017-04-01 17:36:06 -07:00
|
|
|
}
|