1
0
Fork 0
mirror of https://github.com/vanitasvitae/Spherical synced 2025-09-10 10:49:42 +02:00

Read images and display their metadata

This commit is contained in:
vanitasvitae 2017-09-12 19:50:59 +02:00
parent 57b3068e70
commit 68d2695fae
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 70 additions and 6 deletions

View file

@ -102,7 +102,7 @@ public class SphereParser {
System.out.println(getXMLContent(new FileInputStream(file)));
}
public static void unread(ArrayList<Byte> list, PushbackInputStream pb) throws IOException {
private static void unread(ArrayList<Byte> list, PushbackInputStream pb) throws IOException {
for (int i = list.size() - 1; i >= 0; i--) {
pb.unread(list.get(i));
}
@ -114,11 +114,11 @@ public class SphereParser {
}
}
public static String hex(byte[] b) {
private static String hex(byte[] b) {
return new BigInteger(b).toString(16);
}
public static int integer(byte[] b) {
private static int integer(byte[] b) {
return new BigInteger(b).intValue();
}
}