| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Content(org.rhq.plugins.platform.content.yum.Request request)
Construct a new content object.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
protected org.rhq.plugins.platform.content.yum.Request request
protected byte[] bfr
protected final org.apache.commons.logging.Log log
protected Content(org.rhq.plugins.platform.content.yum.Request request)
request - The request that is constructing the object.public abstract void writeContent(OutputStream ostr) throws Exception
Exceptionpublic abstract void writeHeader(OutputStream ostr) throws Exception
Exceptionpublic 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()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.