|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.util.ExtendedResourceUtils
public class ExtendedResourceUtils
Provides a number of static methods that work on Resources.
| Constructor Summary | |
|---|---|
ExtendedResourceUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
toByteArray(org.springframework.core.io.Resource resource)
Reads the contents of a Resource into a byte array. |
static java.lang.String |
toString(org.springframework.core.io.Resource resource)
Reads the contents of a Resource into a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedResourceUtils()
| Method Detail |
|---|
public static byte[] toByteArray(org.springframework.core.io.Resource resource)
throws RuntimeIOException
Resource into a byte array.
resource - the resource.
RuntimeIOException - when an I/O error occurs.
public static java.lang.String toString(org.springframework.core.io.Resource resource)
throws RuntimeIOException
Resource into a String.
resource - the resource.
RuntimeIOException - when an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||