edu.uoc.tfc.web
Class EmktDataSource
java.lang.Object
edu.uoc.tfc.web.EmktDataSource
- All Implemented Interfaces:
- javax.activation.DataSource
public final class EmktDataSource
- extends java.lang.Object
- implements javax.activation.DataSource
Method Summary |
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
El método getInputStream() debe devolver siempre un nuevo InputStream,
no debe pasarsele un InputStream por pase de parámetros |
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmktDataSource
public EmktDataSource(byte[] buf,
java.lang.String contentType)
EmktDataSource
public EmktDataSource(byte[] buf,
int length,
java.lang.String contentType)
EmktDataSource
public EmktDataSource(byte[] buf,
int start,
int length,
java.lang.String contentType)
EmktDataSource
public EmktDataSource(java.io.InputStream _is)
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface javax.activation.DataSource
getInputStream
public java.io.InputStream getInputStream()
- El método getInputStream() debe devolver siempre un nuevo InputStream,
no debe pasarsele un InputStream por pase de parámetros
- Specified by:
getInputStream
in interface javax.activation.DataSource
- See Also:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4267294
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.activation.DataSource
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface javax.activation.DataSource