Java XML String Transform getStreamResultForFile(String filename)

Here you can find the source of getStreamResultForFile(String filename)

Description

get Stream Result For File

License

Open Source License

Declaration

public static StreamResult getStreamResultForFile(String filename) 

Method Source Code


//package com.java2s;
import java.io.File;

import javax.xml.transform.stream.StreamResult;

public class Main {
    public static StreamResult getStreamResultForFile(String filename) {
        if (filename == null || "".equals(filename))
            throw new IllegalArgumentException("Filename for result can't be null or empty.");
        return new StreamResult(new File(filename));
    }/*from w ww  .ja va 2 s.  c  o m*/
}

Related

  1. getOutputSQLPageXML(String inStatement, Map map)
  2. getPropertyAsString(final Properties prop, final String comment)
  3. getSchema(String schemaString)
  4. getSchemaFromResource(String... files)
  5. getSourceAsString(Source source)
  6. getString(Node node, boolean indent)
  7. getStringFromStreamSource(StreamSource src)
  8. getTemplates(String name)
  9. getValidator(String path)