Sonic ESB API

com.sonicsw.esb.service.common.util.spring
Class ResourceUtils

java.lang.Object
  extended by com.sonicsw.esb.service.common.util.spring.ResourceUtils

public class ResourceUtils
extends java.lang.Object


Constructor Summary
ResourceUtils()
           
 
Method Summary
static byte[] getContents(org.springframework.core.io.Resource resource)
          Reads the contents of a resource in to a byte array.
static org.w3c.dom.Element parseContents(org.springframework.core.io.Resource resource)
          Parses the contents of a resource as a DOM element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceUtils

public ResourceUtils()
Method Detail

getContents

public static byte[] getContents(org.springframework.core.io.Resource resource)
                          throws java.io.IOException
Reads the contents of a resource in to a byte array.

Throws:
java.io.IOException

parseContents

public static org.w3c.dom.Element parseContents(org.springframework.core.io.Resource resource)
                                         throws java.io.IOException,
                                                org.xml.sax.SAXException
Parses the contents of a resource as a DOM element.

Throws:
java.io.IOException
org.xml.sax.SAXException

Sonic ESB API

Copyright © 2001-2013 Aurea, Inc. All Rights Reserved.
HTML formatted on 29-April-2013.