public class ByteArraySource
extends javax.xml.transform.stream.StreamSource
Purpose: Provides an implementation of Source that can act on a byte[]. Overrides the getInputStream and getReader methods to ensure a new stream is created each time (to prevent the one use restriction of StreamSource).
Constructor and Description |
---|
ByteArraySource(byte[] bytes) |
ByteArraySource(byte[] bytes,
java.lang.String mimeType) |
ByteArraySource(ByteArrayDataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
java.io.Reader |
getReader() |
public ByteArraySource(byte[] bytes)
public ByteArraySource(byte[] bytes, java.lang.String mimeType)
public ByteArraySource(ByteArrayDataSource dataSource)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference