|
||||||||||
| 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
org.rhq.plugins.platform.content.yum.Package
public class Package
Represents an rpm package.
| Field Summary |
|---|
| Fields inherited from class org.rhq.plugins.platform.content.yum.Content |
|---|
bfr, log, request |
| Constructor Summary | |
|---|---|
Package(org.rhq.plugins.platform.content.yum.Request request)
Construct a package with an active yum request object. |
|
| Method Summary | |
|---|---|
long |
length()
Get the length in bytes of this package. |
InputStream |
openStream()
Open an input stream for the package bits. |
void |
writeContent(OutputStream ostr)
Write the content (bits) for this package to the specified stream. |
void |
writeHeader(OutputStream ostr)
Write the http header for this package to the specified stream. |
| Methods inherited from class org.rhq.plugins.platform.content.yum.Content |
|---|
context, delete, transfer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Package(org.rhq.plugins.platform.content.yum.Request request)
request - An active yum request.| Method Detail |
|---|
public long length()
throws Exception
length in class ContentException - on all errors.
public InputStream openStream()
throws Exception
openStream in class ContentException - On error.
public void writeHeader(OutputStream ostr)
throws Exception
writeHeader in class Contentostr - An open output stream.
Exception - On all errors.
public void writeContent(OutputStream ostr)
throws Exception
writeContent in class Contentostr - An open output stream.
Exception - On all errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||