1 源码解析
1.1 源码解析1(jdk中的应用)
1.2 源码解析2(Spring中的应用)
1 源码解析
1.1 源码解析1(jdk中的应用)
java.util.regex.Pattern
(java正则表达式通过java.util.regex包下的Pattern类与Matcher类实现)
1.2 源码解析2(Spring中的应用)
org.springframework.core.io.Resource(策略抽象)
package org.springframework.core.io;
import java.io.File;
import java.io.IOException; import java.net.URI; import java.net.URL; public interface Resource extends InputStreamSource { boolean exists(); boolean isReadable(); boolean isOpen(); URL getURL() throws IOException; URI getURI() throws IOException; File getFile() throws IOException; long contentLength() throws IOException; long lastModified() throws IOException; Resource createRelative(String var1) throws IOException; String getFilename(); String getDescription(); }