public class SpringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
KEY_PATTERN |
| Constructor and Description |
|---|
SpringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.core.io.Resource |
addExtension(org.springframework.core.io.Resource resource,
String extension) |
static void |
close(org.springframework.context.ConfigurableApplicationContext applicationContext) |
static void |
copy(InputStream in,
org.springframework.core.io.Resource target) |
static void |
copy(org.springframework.core.io.Resource source,
org.springframework.core.io.Resource target) |
static boolean |
delete(org.springframework.core.io.Resource resource) |
static org.springframework.context.support.GenericApplicationContext |
getApplicationContext(ClassLoader classLoader,
org.springframework.core.io.Resource... resources) |
static String |
getBaseName(org.springframework.core.io.Resource resource) |
static org.springframework.core.io.Resource |
getBaseResource() |
static org.springframework.core.io.Resource |
getBaseResource(String childPath) |
static BufferedReader |
getBufferedReader(org.springframework.core.io.Resource resource) |
static String |
getContents(org.springframework.core.io.Resource resource) |
static File |
getFile(org.springframework.core.io.Resource resource) |
static String |
getFileNameExtension(org.springframework.core.io.Resource resource) |
static File |
getFileOrCreateTempFile(org.springframework.core.io.Resource resource) |
static OutputStream |
getFileOutputStream(org.springframework.core.io.Resource resource) |
static InputStream |
getInputStream(org.springframework.core.io.Resource resource) |
static long |
getLastModified(org.springframework.core.io.Resource resource) |
static File |
getOrDownloadFile(org.springframework.core.io.Resource resource) |
static OutputStream |
getOutputStream(org.springframework.core.io.Resource resource) |
static org.springframework.core.io.Resource |
getParentResource(org.springframework.core.io.Resource resource) |
static PrintWriter |
getPrintWriter(org.springframework.core.io.Resource resource) |
static Reader |
getReader(org.springframework.core.io.Resource resource) |
static org.springframework.core.io.Resource |
getResource(File directory,
String fileName) |
static org.springframework.core.io.Resource |
getResource(org.springframework.core.io.Resource resource,
CharSequence childPath) |
static org.springframework.core.io.Resource |
getResource(String url) |
static org.springframework.core.io.Resource |
getResourceWithExtension(org.springframework.core.io.Resource resource,
String extension) |
static String |
getString(org.springframework.core.io.Resource resource) |
static URL |
getUrl(org.springframework.core.io.Resource resource) |
static Writer |
getWriter(org.springframework.core.io.Resource resource) |
static org.springframework.core.io.Resource |
setBaseResource(org.springframework.core.io.Resource baseResource) |
public static final Pattern KEY_PATTERN
public static org.springframework.core.io.Resource addExtension(org.springframework.core.io.Resource resource,
String extension)
public static void close(org.springframework.context.ConfigurableApplicationContext applicationContext)
public static void copy(InputStream in, org.springframework.core.io.Resource target)
public static void copy(org.springframework.core.io.Resource source,
org.springframework.core.io.Resource target)
public static boolean delete(org.springframework.core.io.Resource resource)
public static org.springframework.context.support.GenericApplicationContext getApplicationContext(ClassLoader classLoader, org.springframework.core.io.Resource... resources)
public static String getBaseName(org.springframework.core.io.Resource resource)
public static org.springframework.core.io.Resource getBaseResource()
public static org.springframework.core.io.Resource getBaseResource(String childPath)
public static BufferedReader getBufferedReader(org.springframework.core.io.Resource resource)
public static String getContents(org.springframework.core.io.Resource resource)
public static File getFile(org.springframework.core.io.Resource resource)
public static String getFileNameExtension(org.springframework.core.io.Resource resource)
public static File getFileOrCreateTempFile(org.springframework.core.io.Resource resource)
public static OutputStream getFileOutputStream(org.springframework.core.io.Resource resource) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static InputStream getInputStream(org.springframework.core.io.Resource resource)
public static long getLastModified(org.springframework.core.io.Resource resource)
public static File getOrDownloadFile(org.springframework.core.io.Resource resource)
public static OutputStream getOutputStream(org.springframework.core.io.Resource resource)
public static org.springframework.core.io.Resource getParentResource(org.springframework.core.io.Resource resource)
public static PrintWriter getPrintWriter(org.springframework.core.io.Resource resource)
public static Reader getReader(org.springframework.core.io.Resource resource)
public static org.springframework.core.io.Resource getResource(File directory, String fileName)
public static org.springframework.core.io.Resource getResource(org.springframework.core.io.Resource resource,
CharSequence childPath)
public static org.springframework.core.io.Resource getResource(String url)
public static org.springframework.core.io.Resource getResourceWithExtension(org.springframework.core.io.Resource resource,
String extension)
public static String getString(org.springframework.core.io.Resource resource)
public static URL getUrl(org.springframework.core.io.Resource resource)
public static Writer getWriter(org.springframework.core.io.Resource resource)
public static org.springframework.core.io.Resource setBaseResource(org.springframework.core.io.Resource baseResource)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.