org.sonatype.tycho.p2.repository
Class DefaultTychoRepositoryIndex

java.lang.Object
  extended by org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex
All Implemented Interfaces:
TychoRepositoryIndex
Direct Known Subclasses:
LocalTychoRepositoryIndex

public class DefaultTychoRepositoryIndex
extends java.lang.Object
implements TychoRepositoryIndex

Default implementation of TychoRepositoryIndex defines tycho repository index format and provides generic index read/write methods.


Field Summary
protected static java.lang.String ENCODING
           
protected static java.lang.String EOL
           
protected  java.util.Set<GAV> gavs
           
static java.lang.String INDEX_RELPATH
           
 
Constructor Summary
protected DefaultTychoRepositoryIndex()
           
  DefaultTychoRepositoryIndex(RepositoryReader repositoryReader)
           
 
Method Summary
 void addProject(GAV gav)
           
 void addProject(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
 java.util.List<GAV> getProjectGAVs()
           
protected static java.util.Set<GAV> read(java.io.InputStream is)
           
 void write(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

protected static final java.lang.String ENCODING
See Also:
Constant Field Values

EOL

protected static final java.lang.String EOL
See Also:
Constant Field Values

INDEX_RELPATH

public static final java.lang.String INDEX_RELPATH
See Also:
Constant Field Values

gavs

protected java.util.Set<GAV> gavs
Constructor Detail

DefaultTychoRepositoryIndex

protected DefaultTychoRepositoryIndex()

DefaultTychoRepositoryIndex

public DefaultTychoRepositoryIndex(RepositoryReader repositoryReader)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

protected static java.util.Set<GAV> read(java.io.InputStream is)
                                  throws java.io.IOException
Throws:
java.io.IOException

getProjectGAVs

public java.util.List<GAV> getProjectGAVs()
Specified by:
getProjectGAVs in interface TychoRepositoryIndex

addProject

public void addProject(java.lang.String groupId,
                       java.lang.String artifactId,
                       java.lang.String version)

addProject

public void addProject(GAV gav)

write

public void write(java.io.OutputStream os)
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008-2011. All Rights Reserved.