com.xebialabs.rest.doclet
Class Resource
java.lang.Object
com.xebialabs.rest.doclet.Resource
- All Implemented Interfaces:
- com.google.common.io.InputSupplier<java.io.InputStream>
public abstract class Resource
- extends java.lang.Object
- implements com.google.common.io.InputSupplier<java.io.InputStream>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
public Resource()
write
public void write(java.io.PrintWriter writer)
unzip
public void unzip(java.io.File destinationDir)
copy
public void copy(java.io.File destination)
getInput
public abstract java.io.InputStream getInput()
- Specified by:
getInput in interface com.google.common.io.InputSupplier<java.io.InputStream>
getName
public abstract java.lang.String getName()
classpathResource
public static Resource classpathResource(java.lang.String name)
file
public static Resource file(java.io.File file)