@ConsumerType
public static interface ConnectContent.ConnectEntry
ConnectContent
.Modifier and Type | Method and Description |
---|---|
default byte[] |
getBytes()
Returns the content of this entry.
|
long |
getContentLength()
Returns the content length of this entry.
|
java.io.InputStream |
getInputStream()
Returns an input stream for the content of this entry.
|
long |
getLastModified()
Returns the last modification time of this entry.
|
java.lang.String |
getName()
Returns the path name of this entry.
|
java.lang.String getName()
long getContentLength()
-1
if the content
length is not known.long getLastModified()
default byte[] getBytes() throws java.io.IOException
java.io.IOException
- If an error occurs reading the content.java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- If an error occurs reading the content.Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0