All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.xml.crypto.OctetStreamData Maven / Gradle / Ivy

The newest version!
/*    */ package javax.xml.crypto;
/*    */ 
/*    */ import java.io.InputStream;
/*    */ 
/*    */ public class OctetStreamData
/*    */   implements Data
/*    */ {
/*    */   private InputStream octetStream;
/*    */   private String uri;
/*    */   private String mimeType;
/*    */ 
/*    */   public OctetStreamData(InputStream octetStream)
/*    */   {
/* 31 */     if (octetStream == null) {
/* 32 */       throw new NullPointerException("octetStream is null");
/*    */     }
/* 34 */     this.octetStream = octetStream;
/*    */   }
/*    */ 
/*    */   public OctetStreamData(InputStream octetStream, String uri, String mimeType)
/*    */   {
/* 50 */     if (octetStream == null) {
/* 51 */       throw new NullPointerException("octetStream is null");
/*    */     }
/* 53 */     this.octetStream = octetStream;
/* 54 */     this.uri = uri;
/* 55 */     this.mimeType = mimeType;
/*    */   }
/*    */ 
/*    */   public InputStream getOctetStream()
/*    */   {
/* 64 */     return this.octetStream;
/*    */   }
/*    */ 
/*    */   public String getURI()
/*    */   {
/* 74 */     return this.uri;
/*    */   }
/*    */ 
/*    */   public String getMimeType()
/*    */   {
/* 84 */     return this.mimeType;
/*    */   }
/*    */ }

/* Location:           E:\HYN\Java\trunk\ref\lib-dep\xmldsig\xmldsig.jar
 * Qualified Name:     javax.xml.crypto.OctetStreamData
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy