1 6 7 package javax.emb; 8 9 import java.net.URL; 10 11 38 public final class MediaSegment 39 { 40 private byte[] content; 41 private URL childLocation; 42 43 48 public MediaSegment() 49 { 50 content = new byte[0]; 51 childLocation = null; 52 } 53 54 59 public byte[] getContent() 60 { 61 return content; 62 } 63 64 70 public URL getChildLocation() 71 { 72 return childLocation; 73 } 74 75 81 public void setContent(byte[] content) 82 { 83 if (content == null) 84 { 85 throw new NullPointerException(); 86 } 87 88 this.content = content; 89 } 90 91 97 public void setChildLocation(URL childLocation) 98 { 99 this.childLocation = childLocation; 100 } 101 } | Popular Tags |