mirror of
https://github.com/axiomatic-systems/Bento4.git
synced 2026-01-26 16:28:24 +08:00
27 lines
714 B
Java
27 lines
714 B
Java
package com.axiosys.bento4;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class Test {
|
|
|
|
/**
|
|
* @param args
|
|
* @throws IOException
|
|
* @throws InvalidFormatException
|
|
*/
|
|
public static void main(String[] args) throws IOException, InvalidFormatException {
|
|
AtomList atoms = new AtomList(args[0]);
|
|
|
|
if (args.length > 1) {
|
|
Atom atom = AtomUtils.findAtom(atoms, args[1]);
|
|
if (atom != null) {
|
|
System.out.println(atom);
|
|
byte[] payload = atom.getPayload();
|
|
System.out.println(new String(payload));
|
|
}
|
|
} else {
|
|
System.out.println(atoms);
|
|
}
|
|
}
|
|
}
|