Class EmbeddedResource
java.lang.Object
aQute.bnd.osgi.EmbeddedResource
- All Implemented Interfaces:
Resource, Closeable, AutoCloseable
-
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()voidclose()getExtra()UseResource.decodeExtra(String)to properly decode the ZIP extra field structured binary data from the returned String.longvoidUseResource.encodeExtra(byte[])to properly encode the ZIP extra field structured binary data into the specified String.longsize()toString()voidwrite(OutputStream out)
-
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:
openInputStreamin interfaceResource
-
write
-
toString
-
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceResource
-
getExtra
Description copied from interface:ResourceUseResource.decodeExtra(String)to properly decode the ZIP extra field structured binary data from the returned String. -
setExtra
Description copied from interface:ResourceUseResource.encodeExtra(byte[])to properly encode the ZIP extra field structured binary data into the specified String. -
size
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-