标签:
该接口提供最为资源读取流的简单接口。只有一个方法:
InputStream getInputStream()throwsIOException;
该方法每次调用都会返回一个新的流对象。
boolean exists();
boolean isReadable();
boolean isOpen();
URL getURL()throwsIOException;
URI getURI()throwsIOException;
File getFile()throwsIOException;
long contentLength()throwsIOException;
long lastModified()throwsIOException;
Resource createRelative(String relativePath)throwsIOException;
String getFilename();
String getDescription();
boolean isWritable();
OutputStream getOutputStream()throwsIOException;
String getPathWithinContext();
标签:
原文地址:http://www.cnblogs.com/jingLongJun/p/4491126.html