Class Resource
java.lang.Object
com.google.common.io.ByteSource
com.xebialabs.gradle.documentation.restdoc.doclet.Resource
public abstract class Resource
extends com.google.common.io.ByteSource
Utility class for working with files and class path resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Resourcestatic ResourcefromClasspath(String name) abstract StringgetName()abstract InputStreamvoidvoidwrite(PrintWriter writer) Methods inherited from class com.google.common.io.ByteSource
asCharSource, concat, concat, concat, contentEquals, copyTo, copyTo, empty, hash, isEmpty, openBufferedStream, read, read, size, sizeIfKnown, slice, wrap
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
write
-
unzip
-
copy
-
openStream
- Specified by:
openStreamin classcom.google.common.io.ByteSource
-
getName
-
fromClasspath
-
file
-