Class ByteArraySource
- java.lang.Object
-
- javax.xml.transform.stream.StreamSource
-
- org.eclipse.persistence.internal.oxm.ByteArraySource
-
- All Implemented Interfaces:
javax.xml.transform.Source
public class ByteArraySource extends javax.xml.transform.stream.StreamSourceINTERNAL: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).
- Author:
- mmacivor
-
-
Constructor Summary
Constructors Constructor Description ByteArraySource(byte[] bytes)ByteArraySource(byte[] bytes, java.lang.String mimeType)ByteArraySource(ByteArrayDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()java.io.ReadergetReader()
-
-
-
Constructor Detail
-
ByteArraySource
public ByteArraySource(byte[] bytes)
-
ByteArraySource
public ByteArraySource(byte[] bytes, java.lang.String mimeType)
-
ByteArraySource
public ByteArraySource(ByteArrayDataSource dataSource)
-
-