Class ByteArrayDataSource
- java.lang.Object
-
- org.apache.pdfbox.preflight.utils.ByteArrayDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
public class ByteArrayDataSource extends java.lang.Object implements javax.activation.DataSource
-
-
Constructor Summary
Constructors Constructor Description ByteArrayDataSource(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
java.io.InputStream
getInputStream()
java.lang.String
getName()
java.io.OutputStream
getOutputStream()
void
setName(java.lang.String name)
void
setType(java.lang.String type)
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfacejavax.activation.DataSource
-
setType
public void setType(java.lang.String type)
- Parameters:
type
- the type to set
-
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfacejavax.activation.DataSource
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejavax.activation.DataSource
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfacejavax.activation.DataSource
- Throws:
java.io.IOException
-
-