Package aQute.bnd.osgi
Class WriteResource
java.lang.Object
aQute.bnd.osgi.WriteResource
- All Implemented Interfaces:
Resource,Closeable,AutoCloseable
- Direct Known Subclasses:
CalltreeResource,CombinedResource,CommandResource,CoverageResource,JarResource,ManifestResource,MetaTypeReader,PomFromManifest,PomResource,PropertiesResource,TagResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuffer()voidclose()private ByteBuffergetExtra()UseResource.decodeExtra(String)to properly decode the ZIP extra field structured binary data from the returned String.abstract longvoidUseResource.encodeExtra(byte[])to properly encode the ZIP extra field structured binary data into the specified String.longsize()abstract voidwrite(OutputStream out)
-
Field Details
-
buffer
-
extra
-
-
Constructor Details
-
WriteResource
public WriteResource()
-
-
Method Details
-
buffer
-
getBuffer
- Throws:
Exception
-
openInputStream
- Specified by:
openInputStreamin interfaceResource- Throws:
Exception
-
write
-
lastModified
public abstract 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
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-