Package aQute.bnd.osgi
Class WriteResource
- java.lang.Object
-
- aQute.bnd.osgi.WriteResource
-
- All Implemented Interfaces:
Resource
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
CalltreeResource
,CombinedResource
,CommandResource
,CoverageResource
,JarResource
,ManifestResource
,MetaTypeReader
,PomFromManifest
,PomResource
,PropertiesResource
,TagResource
public abstract class WriteResource extends java.lang.Object implements Resource
-
-
Constructor Summary
Constructors Constructor Description WriteResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
buffer()
void
close()
java.lang.String
getExtra()
UseResource.decodeExtra(String)
to properly decode the ZIP extra field structured binary data from the returned String.abstract long
lastModified()
java.io.InputStream
openInputStream()
void
setExtra(java.lang.String extra)
UseResource.encodeExtra(byte[])
to properly encode the ZIP extra field structured binary data into the specified String.long
size()
abstract void
write(java.io.OutputStream out)
-
-
-
Method Detail
-
buffer
public java.nio.ByteBuffer buffer() throws java.lang.Exception
-
openInputStream
public java.io.InputStream openInputStream() throws java.lang.Exception
- Specified by:
openInputStream
in interfaceResource
- Throws:
java.lang.Exception
-
write
public abstract void write(java.io.OutputStream out) throws java.lang.Exception
-
lastModified
public abstract long lastModified()
- Specified by:
lastModified
in interfaceResource
-
getExtra
public java.lang.String getExtra()
Description copied from interface:Resource
UseResource.decodeExtra(String)
to properly decode the ZIP extra field structured binary data from the returned String.
-
setExtra
public void setExtra(java.lang.String extra)
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() throws java.lang.Exception
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-