DEADSOFTWARE
GIT
/
REPO
/
FRED-BOY
Projects
/
cavecraft.git
/ blob
01eda1d239f6494560d5385b7cde8af781a2ffce
[cavecraft.git]
/
Lib_localfiles.java
1
import
java
.
io
.*;
2
3
class
Lib_localfiles
4
{
5
public static int
readunsbyte
(
InputStream is
)
6
{
7
try
{
8
DataInputStream dis
=
new
DataInputStream
(
is
);
9
return
(
int
)
dis
.
readUnsignedByte
();
10
}
catch
(
Exception e
) {
return
-
1
;}
11
}
12
}