Package aQute.bnd.osgi
Class AbstractResource
java.lang.Object
aQute.bnd.osgi.AbstractResource
- All Implemented Interfaces:
Resource,Closeable,AutoCloseable
- Direct Known Subclasses:
PreprocessResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuffer()voidclose()private ByteBufferprotected abstract byte[]getBytes()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()voidwrite(OutputStream out)
-
Field Details
-
extra
-
buffer
-
lastModified
private final long lastModified
-
-
Constructor Details
-
AbstractResource
protected AbstractResource(long modified)
-
-
Method Details
-
getExtra
Description copied from interface:ResourceUseResource.decodeExtra(String)to properly decode the ZIP extra field structured binary data from the returned String. -
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceResource
-
openInputStream
- Specified by:
openInputStreamin interfaceResource- Throws:
Exception
-
getBuffer
- Throws:
Exception
-
buffer
-
setExtra
Description copied from interface:ResourceUseResource.encodeExtra(byte[])to properly encode the ZIP extra field structured binary data into the specified String. -
write
-
getBytes
- Throws:
Exception
-
size
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-