moazs.util
Class ByteArrayDataSource
java.lang.Object
moazs.util.ByteArrayDataSource
- All Implemented Interfaces:
- DataSource
- public class ByteArrayDataSource
- extends Object
- implements DataSource
ByteArrayDataSource
public ByteArrayDataSource(byte[] bytes,
String contentType,
String name)
getContentType
public String getContentType()
- Specified by:
getContentType
in interface DataSource
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interface DataSource
getName
public String getName()
- Specified by:
getName
in interface DataSource
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Specified by:
getOutputStream
in interface DataSource
- Throws:
IOException
Copyright 2008 EGIZ. All Rights Reserved.