Package aQute.bnd.osgi
Class EmbeddedResource
java.lang.Object
aQute.bnd.osgi.EmbeddedResource
- All Implemented Interfaces:
Resource
,Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedResource
(byte[] data, int off, int len, long lastModified) EmbeddedResource
(byte[] data, long lastModified) EmbeddedResource
(String pc, long lastModified) EmbeddedResource
(ByteBuffer buffer, long lastModified) -
Method Summary
Modifier and TypeMethodDescriptionbuffer()
void
close()
getExtra()
UseResource.decodeExtra(String)
to properly decode the ZIP extra field structured binary data from the returned String.long
void
UseResource.encodeExtra(byte[])
to properly encode the ZIP extra field structured binary data into the specified String.long
size()
toString()
void
write
(OutputStream out)
-
Field Details
-
buffer
-
lastModified
private final long lastModified -
extra
-
-
Constructor Details
-
EmbeddedResource
public EmbeddedResource(byte[] data, long lastModified) -
EmbeddedResource
public EmbeddedResource(byte[] data, int off, int len, long lastModified) -
EmbeddedResource
-
EmbeddedResource
-
-
Method Details
-
buffer
-
openInputStream
- Specified by:
openInputStream
in interfaceResource
-
write
-
toString
-
lastModified
public long lastModified()- Specified by:
lastModified
in interfaceResource
-
getExtra
Description copied from interface:Resource
UseResource.decodeExtra(String)
to properly decode the ZIP extra field structured binary data from the returned String. -
setExtra
Description copied from interface:Resource
UseResource.encodeExtra(byte[])
to properly encode the ZIP extra field structured binary data into the specified String. -
size
public long size() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-