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()
void
close()
private ByteBuffer
getExtra()
UseResource.decodeExtra(String)
to properly decode the ZIP extra field structured binary data from the returned String.abstract long
void
UseResource.encodeExtra(byte[])
to properly encode the ZIP extra field structured binary data into the specified String.long
size()
abstract void
write
(OutputStream out)
-
Field Details
-
buffer
-
extra
-
-
Constructor Details
-
WriteResource
public WriteResource()
-
-
Method Details
-
buffer
-
getBuffer
- Throws:
Exception
-
openInputStream
- Specified by:
openInputStream
in interfaceResource
- Throws:
Exception
-
write
-
lastModified
public abstract 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
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-