Package org.osgi.framework.connect
Interface ConnectContent.ConnectEntry
- Enclosing interface:
- ConnectContent
@ConsumerType
public static interface ConnectContent.ConnectEntry
Represents the entry of a
ConnectContent
.-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]
getBytes()
Returns the content of this entry.long
Returns the content length of this entry.Returns an input stream for the content of this entry.long
Returns the last modification time of this entry.getName()
Returns the path name of this entry.
-
Method Details
-
getName
String getName()Returns the path name of this entry.- Returns:
- The path name of this entry.
-
getContentLength
long getContentLength()Returns the content length of this entry.- Returns:
- The content length of the entry, or
-1
if the content length is not known.
-
getLastModified
long getLastModified()Returns the last modification time of this entry.- Returns:
- The last modification time of this entry measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).
-
getBytes
Returns the content of this entry.- Returns:
- The content of this entry.
- Throws:
IOException
- If an error occurs reading the content.
-
getInputStream
Returns an input stream for the content of this entry.- Returns:
- An input stream for the content of this entry.
- Throws:
IOException
- If an error occurs reading the content.
-