Package org.hibernate.boot.jaxb.internal
Class InputStreamXmlSource
java.lang.Object
org.hibernate.boot.jaxb.internal.InputStreamXmlSource
Support for processing mapping XML from a InputStream reference.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Binding
<? extends JaxbBindableMappingDescriptor> fromStream
(InputStream inputStream, MappingBinder mappingBinder) Create a mapping binding from an input stream.static Binding
<? extends JaxbBindableMappingDescriptor> fromStream
(InputStream stream, Origin origin, boolean autoClose, MappingBinder binder) Utility form to create a binding from an input source.
-
Constructor Details
-
InputStreamXmlSource
public InputStreamXmlSource()
-
-
Method Details
-
fromStream
public static Binding<? extends JaxbBindableMappingDescriptor> fromStream(InputStream inputStream, MappingBinder mappingBinder) Create a mapping binding from an input stream.- API Note:
- This method does not close the given
inputStream
.
-
fromStream
public static Binding<? extends JaxbBindableMappingDescriptor> fromStream(InputStream stream, Origin origin, boolean autoClose, MappingBinder binder) Utility form to create a binding from an input source.- Parameters:
stream
- The stream from which to read the mappingsorigin
- Description of the source from which the stream cameautoClose
- Whether to close the stream after we have processed itbinder
- The JAXB binder to use
-