Java XML Transform Usage streamSource(File file)

Here you can find the source of streamSource(File file)

Description

stream Source

License

CDDL license

Declaration

public static javax.xml.transform.stream.StreamSource streamSource(File file)
            throws java.io.FileNotFoundException 

Method Source Code

//package com.java2s;
//License from project: CDDL license 

import javax.xml.transform.stream.StreamSource;

import java.io.File;
import java.io.FileInputStream;

public class Main {
    public static javax.xml.transform.stream.StreamSource streamSource(File file)
            throws java.io.FileNotFoundException {
        return new StreamSource(new FileInputStream(file));
    }/*w  w w. j  ava 2  s.  c om*/
}

Related

  1. parse(final InputStream file, final ContentHandler handler)
  2. path(Element element)
  3. readDoc(Reader in)
  4. renderElement(Element theElem)
  5. safeToXml(Element element)
  6. toNonValidatingSAXSource(InputStream in)
  7. toXMLInputSource(StreamSource in)
  8. unwrapException(Throwable t)
  9. verifySignature(Element element, PublicKey validatingKey)