|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.platform.content.yum.Content
public abstract class Content
The content class is the base class for yum file content. This includes the medatadata as well as the packages (rpms).
| Field Summary | |
|---|---|
protected byte[] |
bfr
A stream copy buffer. |
protected org.apache.commons.logging.Log |
log
Logger |
protected org.rhq.plugins.platform.content.yum.Request |
request
The current yum request. |
| Constructor Summary | |
|---|---|
protected |
Content(org.rhq.plugins.platform.content.yum.Request request)
Construct a new content object. |
| Method Summary | |
|---|---|
protected YumContext |
context()
|
void |
delete()
Delete the local content artifact. |
abstract long |
length()
|
abstract InputStream |
openStream()
|
protected void |
transfer(InputStream istr,
OutputStream ostr)
Transfer bytes from the input stream to the output stream. |
abstract void |
writeContent(OutputStream ostr)
|
abstract void |
writeHeader(OutputStream ostr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.rhq.plugins.platform.content.yum.Request request
protected byte[] bfr
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
protected Content(org.rhq.plugins.platform.content.yum.Request request)
request - The request that is constructing the object.| Method Detail |
|---|
public abstract long length()
throws Exception
Exception
public abstract void writeContent(OutputStream ostr)
throws Exception
Exception
public abstract void writeHeader(OutputStream ostr)
throws Exception
Exception
public abstract InputStream openStream()
throws Exception
Exceptionpublic void delete()
protected void transfer(InputStream istr,
OutputStream ostr)
throws IOException
istr - An input stream.ostr - An output stream.
IOException - On all errors.protected YumContext context()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||