源码:
public static InputStream getInputStream(final DataInput in)
{
if(in instanceof InputStream)
return (InputStream)in;
else
return new InputStream() {
public int read()
throws IOException
{
try
{
return in.readUnsignedByte();
}
catch(EOFException e)
{
return -1;
}
}
};
}
反编译后:
public static InputStream getInputStream(DataInput in)
{
return ((InputStream) ((in instanceof InputStream) ? (InputStream)in : new InputStream(in) {
public int read()
throws IOException
{
return in.readUnsignedByte();
EOFException e;
e;
return -1;
}
throws IOException
{
super();
}
}));
}