public class Input extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Input.Builder
Interface for fluent builders of
Sources. |
static interface |
Input.TransformationBuilder
Builds
Sources by transforming other sources. |
| Modifier and Type | Method and Description |
|---|---|
static Input.TransformationBuilder |
byTransforming(Input.Builder b)
Build a Source by XSLT transforming a different Source.
|
static Input.TransformationBuilder |
byTransforming(Source s)
Build a Source by XSLT transforming a different Source.
|
static Input.Builder |
from(Object object)
Return the matching Builder for the supported types:
Source, Input.Builder, Document, Node,
byte[] (XML as byte[]), String (XML as String), File (contains XML),
URL (to an XML-Document), URI (to an XML-Document), InputStream,
ReadableByteChannel, Path,
Jaxb-Object (marshal-able with JAXB.marshal(...)) |
static Input.Builder |
fromByteArray(byte[] b)
Build a Source from an array of bytes.
|
static Input.Builder |
fromChannel(ReadableByteChannel c)
Build a Source from a channel.
|
static Input.Builder |
fromDocument(Document d)
Build a Source from a DOM Document.
|
static Input.Builder |
fromFile(File f)
Build a Source from a file.
|
static Input.Builder |
fromFile(String name)
Build a Source from a named file.
|
static JaxbBuilder |
fromJaxb(Object jaxbObject)
Build a Source from a Jaxb-Object.
|
static Input.Builder |
fromNode(Node n)
Build a Source from a DOM Node.
|
static Input.Builder |
fromPath(Path path)
Build a Source from a Path.
|
static Input.Builder |
fromReader(Reader r)
Build a Source from a reader.
|
static Input.Builder |
fromStream(InputStream s)
Build a Source from a stream.
|
static Input.Builder |
fromString(String s)
Build a Source from a string.
|
static Input.Builder |
fromURI(String uri)
Build a Source from an URI.
|
static Input.Builder |
fromURI(URI uri)
Build a Source from an URI.
|
static Input.Builder |
fromURL(URL url)
Build a Source from an URL.
|
public static Input.Builder fromDocument(Document d)
d - the document to use as sourcepublic static Input.Builder fromNode(Node n)
n - the node to use as sourcepublic static Input.Builder from(Object object)
Source, Input.Builder, Document, Node,
byte[] (XML as byte[]), String (XML as String), File (contains XML),
URL (to an XML-Document), URI (to an XML-Document), InputStream,
ReadableByteChannel, Path,
Jaxb-Object (marshal-able with JAXB.marshal(...))object - the object to use as sourcepublic static JaxbBuilder fromJaxb(Object jaxbObject)
jaxbObject - the object to use as sourcepublic static Input.Builder fromFile(File f)
f - the file to use as sourcepublic static Input.Builder fromFile(String name)
name - name of the file to use as sourcepublic static Input.Builder fromStream(InputStream s)
s - the stream to use as sourcepublic static Input.Builder fromReader(Reader r)
r - the reader to use as sourcepublic static Input.Builder fromString(String s)
s - the string to use as sourcepublic static Input.Builder fromByteArray(byte[] b)
b - the bytes to use as sourcepublic static Input.Builder fromChannel(ReadableByteChannel c)
c - the channel to use as sourcepublic static Input.Builder fromURL(URL url)
url - the url to use as sourcepublic static Input.Builder fromURI(URI uri)
uri - must represent a valid URLpublic static Input.Builder fromURI(String uri)
uri - must represent a valid URLpublic static Input.Builder fromPath(Path path)
path - a Pathpublic static Input.TransformationBuilder byTransforming(Source s)
s - the source to transformpublic static Input.TransformationBuilder byTransforming(Input.Builder b)
b - builder providing the source to transformCopyright © 2001–2025 XMLUnit. All rights reserved.