Module org.eclipse.persistence.core
Class ByteArraySource
java.lang.Object
javax.xml.transform.stream.StreamSource
org.eclipse.persistence.internal.oxm.ByteArraySource
- All Implemented Interfaces:
Source
INTERNAL:
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).
-
Field Summary
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
Constructor Summary
ConstructorDescriptionByteArraySource
(byte[] bytes) ByteArraySource
(byte[] bytes, String mimeType) ByteArraySource
(ByteArrayDataSource dataSource) -
Method Summary
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
Constructor Details
-
ByteArraySource
public ByteArraySource(byte[] bytes) -
ByteArraySource
-
ByteArraySource
-
-
Method Details
-
getInputStream
- Overrides:
getInputStream
in classStreamSource
-
getReader
- Overrides:
getReader
in classStreamSource
-