public abstract static class HttpVfs.AbstractEntry extends Object implements HttpVfs.Entry
HttpVfs.Entry
implementation.NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractEntry(String path,
MediaType mediaType,
String contentEncoding)
Creates a new instance with the specified
path and mediaType . |
protected |
AbstractEntry(String path,
String contentEncoding)
Creates a new instance with the specified
path . |
Modifier and Type | Method and Description |
---|---|
String |
contentEncoding()
The content encoding of the entry.
|
MediaType |
mediaType()
Returns the MIME type of the entry.
|
protected HttpData |
readContent(InputStream in)
Reads the content of the entry into a new buffer.
|
protected HttpData |
readContent(InputStream in,
int length)
Reads the content of the entry into a new buffer.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
lastModifiedMillis, readContent
protected AbstractEntry(String path, @Nullable String contentEncoding)
path
.@Nullable public MediaType mediaType()
HttpVfs.Entry
mediaType
in interface HttpVfs.Entry
null
if unknown@Nullable public String contentEncoding()
HttpVfs.Entry
contentEncoding
in interface HttpVfs.Entry
protected HttpData readContent(InputStream in) throws IOException
readContent(InputStream, int)
when the length of the stream is known.IOException
protected HttpData readContent(InputStream in, int length) throws IOException
readContent(InputStream)
when the length of the stream is unknown.IOException
© Copyright 2015–2017 LINE Corporation. All rights reserved.