public class ClasspathHttpFile extends AbstractHttpFile
HttpFile
implementation.charset, contentEncoding, contentType
resourcePath
Constructor and Description |
---|
ClasspathHttpFile(String resourcePath,
String classPath,
String classpathPrefix,
AbstractHttpFileDescription description)
Initiate an existing
HttpFile . |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getContents()
Obtains the contents of this
HttpFile . |
String |
toString() |
equals, getCharset, getContentEncoding, getContentType, hashCode, isExist, writeHttpFile
getPath
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPath
public ClasspathHttpFile(String resourcePath, String classPath, String classpathPrefix, AbstractHttpFileDescription description)
HttpFile
.resourcePath
- Resource path.classPath
- Class path.classpathPrefix
- Class path prefix.description
- AbstractHttpFileDescription
.public ByteBuffer getContents()
HttpFile
Obtains the contents of this HttpFile
.
The ByteBuffer
will typically be read-only to prevent changes to
the contents.
HttpFile
.Copyright © 2005–2016. All rights reserved.