Spring Web Services Framework

org.springframework.xml.sax
Class SaxUtils

java.lang.Object
  extended by org.springframework.xml.sax.SaxUtils

public abstract class SaxUtils
extends Object

Convenient utility methods for dealing with SAX.

Since:
1.0.0
Author:
Arjen Poutsma

Constructor Summary
SaxUtils()
           
 
Method Summary
static InputSource createInputSource(Resource resource)
          Creates a SAX InputSource from the given resource.
static String getSystemId(Resource resource)
          Retrieves the URL from the given resource as System ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxUtils

public SaxUtils()
Method Detail

createInputSource

public static InputSource createInputSource(Resource resource)
                                     throws IOException
Creates a SAX InputSource from the given resource. Sets the system identifier to the resource's URL, if available.

Parameters:
resource - the resource
Returns:
the input source created from the resource
Throws:
IOException - if an I/O exception occurs
See Also:
InputSource.setSystemId(String), getSystemId(org.springframework.core.io.Resource)

getSystemId

public static String getSystemId(Resource resource)
Retrieves the URL from the given resource as System ID. Returns null if it cannot be opened.


Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.