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.googlecode.mp4parser.AbstractFullBox; 20 21 import java.nio.ByteBuffer; 22 23 /** 24 * Only used within the DataReferenceBox. Find more information there. 25 * 26 * @see com.coremedia.iso.boxes.DataReferenceBox 27 */ 28 public class DataEntryUrlBox extends AbstractFullBox { 29 public static final String TYPE = "url "; 30 DataEntryUrlBox()31 public DataEntryUrlBox() { 32 super(TYPE); 33 } 34 35 @Override _parseDetails(ByteBuffer content)36 public void _parseDetails(ByteBuffer content) { 37 parseVersionAndFlags(content); 38 } 39 40 41 @Override getContent(ByteBuffer byteBuffer)42 protected void getContent(ByteBuffer byteBuffer) { 43 writeVersionAndFlags(byteBuffer); 44 } 45 getContentSize()46 protected long getContentSize() { 47 return 4; 48 } 49 toString()50 public String toString() { 51 return "DataEntryUrlBox[]"; 52 } 53 } 54