Package org.basepom.inline.transformer
Class ClassPathResource
java.lang.Object
org.basepom.inline.transformer.ClassPathResource
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassPathResourceforDirectory(String directory) static ClassPathResourceforTesting(String path, ClassPathElement classPathElement, ClassPathTag... tags) static ClassPathResourcefromFile(ClassPathElement classPathElement, File file, com.google.common.collect.ImmutableSet<ClassPathTag> tags) static ClassPathResourcefromZipEntry(ClassPathElement classPathElement, ZipFile zipFile, ZipEntry entry, com.google.common.collect.ImmutableSet<ClassPathTag> tags) byte[]longgetName()com.google.common.collect.ImmutableSet<ClassPathTag>getTags()booleantoString()withContent(byte[] content) withPrefix(String prefix, String name)
-
Method Details
-
fromZipEntry
public static ClassPathResource fromZipEntry(ClassPathElement classPathElement, ZipFile zipFile, ZipEntry entry, com.google.common.collect.ImmutableSet<ClassPathTag> tags) -
fromFile
public static ClassPathResource fromFile(ClassPathElement classPathElement, File file, com.google.common.collect.ImmutableSet<ClassPathTag> tags) -
forDirectory
-
forTesting
public static ClassPathResource forTesting(String path, ClassPathElement classPathElement, ClassPathTag... tags) -
withPrefix
-
withName
-
withContent
-
getClassPathElement
-
hasPrefix
public boolean hasPrefix() -
getName
-
getNameWithPrefix
-
getLastModifiedTime
public long getLastModifiedTime() -
getTags
-
getContent
@Nonnull public byte[] getContent() -
toString
-