1 /*
2  * Copyright 2008 CoreMedia AG, Hamburg
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.coremedia.iso.boxes;
18 
19 import com.coremedia.iso.BoxParser;
20 import com.googlecode.mp4parser.AbstractContainerBox;
21 
22 import java.io.IOException;
23 import java.nio.ByteBuffer;
24 import java.nio.channels.ReadableByteChannel;
25 
26 /**
27  * This box contains objects that declare user information about the containing box and its data (presentation or
28  * track).<br>
29  * The User Data Box is a container box for informative user-data. This user data is formatted as a set of boxes
30  * with more specific box types, which declare more precisely their content
31  */
32 public class UserDataBox extends AbstractContainerBox {
33     public static final String TYPE = "udta";
34 
35     @Override
getContentSize()36     protected long getContentSize() {
37         return super.getContentSize();    //To change body of overridden methods use File | Settings | File Templates.
38     }
39 
40     @Override
parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser)41     public void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
42         super.parse(readableByteChannel, header, contentSize, boxParser);    //To change body of overridden methods use File | Settings | File Templates.
43     }
44 
45     @Override
_parseDetails(ByteBuffer content)46     public void _parseDetails(ByteBuffer content) {
47         super._parseDetails(content);    //To change body of overridden methods use File | Settings | File Templates.
48     }
49 
50     @Override
getContent(ByteBuffer byteBuffer)51     protected void getContent(ByteBuffer byteBuffer) {
52         super.getContent(byteBuffer);    //To change body of overridden methods use File | Settings | File Templates.
53     }
54 
UserDataBox()55     public UserDataBox() {
56         super(TYPE);
57     }
58 
59 }
60