public class Input extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Input.Builder
Interface for fluent builders of
Source s. |
static interface |
Input.TransformationBuilder
Builds
Source s 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 ,
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 |
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)
public static Input.Builder fromNode(Node n)
public 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
,
Jaxb-Object
(marshal-able with JAXB
.marshal(...))public static JaxbBuilder fromJaxb(Object jaxbObject)
public static Input.Builder fromFile(File f)
public static Input.Builder fromFile(String name)
public static Input.Builder fromStream(InputStream s)
public static Input.Builder fromReader(Reader r)
public static Input.Builder fromString(String s)
public static Input.Builder fromByteArray(byte[] b)
public static Input.Builder fromChannel(ReadableByteChannel c)
public static Input.Builder fromURL(URL url)
public 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.TransformationBuilder byTransforming(Source s)
public static Input.TransformationBuilder byTransforming(Input.Builder b)
Copyright © 2001–2017 XMLUnit. All rights reserved.