org.rhq.common.drift
Class ChangeSetWriterImpl

java.lang.Object
  extended by org.rhq.common.drift.ChangeSetWriterImpl
All Implemented Interfaces:
ChangeSetWriter

public class ChangeSetWriterImpl
extends Object
implements ChangeSetWriter

Note that this implementation does not do any validation. It assumes that each file entry contains valid, 64 character SHA-256 hashes. it also assumes paths are not null and that directory entry paths are in relative paths.


Constructor Summary
ChangeSetWriterImpl(File changeSetFile, Headers headers)
           
 
Method Summary
 void close()
           
 void write(FileEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeSetWriterImpl

public ChangeSetWriterImpl(File changeSetFile,
                           Headers headers)
                    throws IOException
Throws:
IOException
Method Detail

write

public void write(FileEntry entry)
           throws IOException
Specified by:
write in interface ChangeSetWriter
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface ChangeSetWriter
Throws:
IOException


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