org.rhq.plugins.platform.content.yum
Class Primary

java.lang.Object
  extended by org.rhq.plugins.platform.content.yum.Content
      extended by org.rhq.plugins.platform.content.yum.Primary

public class Primary
extends Content

Represents the primary yum metadata file (primary.xml).

Author:
jortel

Field Summary
 
Fields inherited from class org.rhq.plugins.platform.content.yum.Content
bfr, log, request
 
Constructor Summary
Primary(org.rhq.plugins.platform.content.yum.Request request)
          Construct the object with an active request.
 
Method Summary
 void delete()
          Delete the local content artifact.
 long length()
           
 InputStream openStream()
           
 void writeContent(OutputStream ostr)
           
 void writeHeader(OutputStream ostr)
           
 
Methods inherited from class org.rhq.plugins.platform.content.yum.Content
context, transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Primary

public Primary(org.rhq.plugins.platform.content.yum.Request request)
Construct the object with an active request.

Parameters:
request - An active yum request.
Method Detail

openStream

public InputStream openStream()
                       throws Exception
Specified by:
openStream in class Content
Throws:
Exception

writeHeader

public void writeHeader(OutputStream ostr)
                 throws Exception
Specified by:
writeHeader in class Content
Throws:
Exception

writeContent

public void writeContent(OutputStream ostr)
                  throws Exception
Specified by:
writeContent in class Content
Throws:
Exception

delete

public void delete()
Description copied from class: Content
Delete the local content artifact.

Overrides:
delete in class Content

length

public long length()
            throws Exception
Specified by:
length in class Content
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.