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:
parent
57b3068e70
commit
68d2695fae
4 changed files with 70 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue