|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.maven.common.ResourceUtils
public class ResourceUtils
| Constructor Summary | |
|---|---|
ResourceUtils()
|
|
| Method Summary | |
|---|---|
void |
copy(String location,
File file)
Copy a URL location to the local file system |
boolean |
exists(String location)
|
String |
getFilename(String location)
Return a filename for this resource, i.e. |
InputStream |
getInputStream(String location)
Given a location that can represent either a file on the file system or a Spring style resource, return an InputStream. |
List<String> |
read(List<String> locations)
|
String |
read(String location)
Read the contents of the URL location into a string |
void |
write(File file,
String contents)
Write the string to the file system |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtils()
| Method Detail |
|---|
public InputStream getInputStream(String location)
throws IOException
IOExceptionpublic boolean exists(String location)
public void copy(String location,
File file)
throws IOException
IOException
public void write(File file,
String contents)
throws IOException
IOException
public List<String> read(List<String> locations)
throws IOException
IOException
public String read(String location)
throws IOException
IOException
public String getFilename(String location)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||