Home | History | Annotate | Download | only in iso

Lines Matching refs:box

18 import com.coremedia.iso.boxes.Box;
31 * This BoxParser handles the basic stuff like reading size and extracting box type.
37 public abstract Box createBox(String type, byte[] userType, String parent);
40 * Parses the next size and type, creates a box instance and parses the box's content.
43 * @param parent the current box's parent (null if no parent)
44 * @return the box just parsed
47 public Box parseBox(ReadableByteChannel byteChannel, ContainerBox parent) throws IOException {
74 throw new RuntimeException("Only FileChannel inputs may use size == 0 (box reaches to the end of file)");
87 Box box = createBox(type, usertype, parent.getType());
88 box.setParent(parent);
89 LOG.finest("Parsing " + box.getType());
90 // System.out.println("parsing " + Arrays.toString(box.getType()) + " " + box.getClass().getName() + " size=" + size);
94 // default - no large box - no uuid
118 box.parse(byteChannel, header, contentSize, this);
119 // System.out.println("box = " + box);
122 assert size == box.getSize() :
124 box.getType() + ")"
125 + " Actual Box size: " + size + " Calculated size: " + box.getSize();
126 return box;