1 7 8 package org.jboss.media.format.audio.oggvorbis; 9 10 import java.io.InputStream ; 11 import java.net.URL ; 12 13 import javax.emb.Media; 14 import javax.emb.MediaException; 15 import javax.emb.MediaFormat; 16 import javax.emb.MediaHeader; 17 import javax.emb.MediaSegment; 18 19 28 public class OggVorbisFormat implements MediaFormat 29 { 30 33 public byte[] assembleContent( 34 URL mediaLocation, 35 MediaSegment[] mediaSegments) 36 throws MediaException 37 { 38 return null; 39 } 40 41 44 public MediaSegment[] disassembleContent( 45 URL mediaLocation, 46 byte[] mediaContent) 47 throws MediaException 48 { 49 return null; 50 } 51 52 55 public MediaHeader extractHeader(InputStream content) throws MediaException 56 { 57 if (content == null) 58 { 59 throw new NullPointerException (); 60 } 61 62 return new OggVorbisHeader(content); 63 } 64 65 68 public Media extractProxy(InputStream content) throws MediaException 69 { 70 return null; 72 } 73 74 77 public String getDefaultMimeType() 78 { 79 return "application/ogg"; 80 } 81 82 85 public boolean isEmbedded() 86 { 87 return false; 88 } 89 90 93 public boolean isStreamingDesirable() 94 { 95 return true; 96 } 97 } | Popular Tags |