1 7 8 9 package org.enhydra.oyster.cms; 10 11 import org.enhydra.oyster.exception.SMIMEException; 12 import org.enhydra.oyster.der.DERSequencePr; 13 14 15 30 public class ContentInfo extends DERSequencePr { 31 32 35 int orderIdentifier = 0; 36 37 43 public ContentInfo () throws SMIMEException 44 { 45 } 46 47 53 public void addContentType (byte[] type0) throws SMIMEException { 54 if (orderIdentifier == 0) { 55 super.addContent(type0); 56 orderIdentifier++; 57 } 58 else 59 throw new SMIMEException(this, 1018); 60 } 61 62 68 public void addContent (byte[] cont0) throws SMIMEException { 69 if (orderIdentifier == 1) { 70 super.addContent(cont0); 71 orderIdentifier++; 72 } 73 else 74 throw new SMIMEException(this, 1018); 75 } 76 } 77 78 79 80 | Popular Tags |