public class Package extends Content
| Constructor and Description |
|---|
Package(org.rhq.plugins.platform.content.yum.Request request)
Construct a package with an active yum request object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Package(org.rhq.plugins.platform.content.yum.Request request)
request - An active yum request.public long length()
throws Exception
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.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.