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

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

public class Repomd
extends Content

Represends the yum repomd.xml file. This file contains information about the other metadata files.

Author:
jortel

Field Summary
 
Fields inherited from class org.rhq.plugins.platform.content.yum.Content
bfr, log, request
 
Constructor Summary
Repomd(org.rhq.plugins.platform.content.yum.Request request)
          Construct with an active yum 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

Repomd

public Repomd(org.rhq.plugins.platform.content.yum.Request request)
Construct with an active yum 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

length

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

delete

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

Overrides:
delete in class Content


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