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()
void
close()
private ByteBuffer
protected abstract byte[]
getBytes()
getExtra()
long
void
long
size()
void
write
(OutputStream out)
-
Field Details
-
extra
-
buffer
-
lastModified
private final long lastModified
-
-
Constructor Details
-
AbstractResource
protected AbstractResource(long modified)
-
-
Method Details
-
getExtra
-
lastModified
public long lastModified()- Specified by:
lastModified
in interfaceResource
-
openInputStream
- Specified by:
openInputStream
in interfaceResource
- Throws:
Exception
-
getBuffer
- Throws:
Exception
-
buffer
-
setExtra
-
write
-
getBytes
- Throws:
Exception
-
size
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-