Class SVNSkel
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.util.SVNSkel
-
public class SVNSkel extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static intDEFAULT_BUFFER_SIZEprivate java.util.List<SVNSkel>myListprivate SVNSkelmyNextprivate byte[]myRawDatastatic charTYPE_DIGITstatic charTYPE_NAMEstatic charTYPE_NOTHINGstatic charTYPE_PARENstatic charTYPE_SPACEprivate static char[]TYPES_TABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.nio.ByteBufferallocate(java.nio.ByteBuffer buffer, int capacity)voidappendChild(SVNSkel child)booleancontainsAtomsOnly()booleancontentEquals(java.lang.String str)static SVNSkelcreateAtom(byte[] data)static SVNSkelcreateAtom(byte[] data, int offset, int length)static SVNSkelcreateAtom(java.lang.String str)private static SVNSkelcreateAtom(SVNPropertyValue propertyValue)static SVNSkelcreateEmptyList()static SVNSkelcreateInheritedProperties(java.util.Map<java.lang.String,SVNProperties> iprops)static SVNSkelcreatePropList(java.util.Map<java.lang.String,SVNPropertyValue> props)private static voiderror(java.lang.String type)private intestimateUnparsedSize()SVNSkelfirst()SVNSkelgetChild(int i)byte[]getData()java.util.List<SVNSkel>getList()intgetListSize()private static byte[]getSizeBytes(int value)static chargetType(byte b)java.lang.StringgetValue()booleanisAtom()booleanisValidInheritedProperties()booleanisValidPropList()SVNSkelnext()static SVNSkelparse(byte[] data)static SVNSkelparse(byte[] data, int offset, int length)static SVNSkelparse(java.nio.ByteBuffer buffer)static SVNSkelparseExplicitAtom(java.nio.ByteBuffer buffer)static SVNSkelparseImplicitAtom(java.nio.ByteBuffer buffer)java.util.List<Structure<StructureFields.InheritedProperties>>parseInheritedProperties()static SVNSkelparseList(java.nio.ByteBuffer buffer)java.util.Map<java.lang.String,byte[]>parsePropList()private static intparseSize(java.nio.ByteBuffer buffer, int limit)voidprepend(SVNSkel child)voidprependPath(java.io.File path)voidprependPropertyValue(SVNPropertyValue propertyValue)voidprependString(java.lang.String str)voidremoveAllChildren()voidremoveChildren(java.util.Collection<SVNSkel> childrenToRemove)java.lang.StringtoString()byte[]unparse()private static java.nio.ByteBufferunread(java.nio.ByteBuffer buffer, int length)private booleanuseImplicit()private static intwriteSizeBytes(int value, byte[] data)java.nio.ByteBufferwriteTo(java.nio.ByteBuffer buffer)
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
TYPE_NOTHING
public static final char TYPE_NOTHING
- See Also:
- Constant Field Values
-
TYPE_SPACE
public static final char TYPE_SPACE
- See Also:
- Constant Field Values
-
TYPE_DIGIT
public static final char TYPE_DIGIT
- See Also:
- Constant Field Values
-
TYPE_PAREN
public static final char TYPE_PAREN
- See Also:
- Constant Field Values
-
TYPE_NAME
public static final char TYPE_NAME
- See Also:
- Constant Field Values
-
TYPES_TABLE
private static final char[] TYPES_TABLE
-
myRawData
private final byte[] myRawData
-
myList
private final java.util.List<SVNSkel> myList
-
myNext
private SVNSkel myNext
-
-
Method Detail
-
getType
public static char getType(byte b)
-
parse
public static SVNSkel parse(byte[] data) throws SVNException
- Throws:
SVNException
-
parse
public static SVNSkel parse(byte[] data, int offset, int length) throws SVNException
- Throws:
SVNException
-
parse
public static SVNSkel parse(java.nio.ByteBuffer buffer) throws SVNException
- Throws:
SVNException
-
parseList
public static SVNSkel parseList(java.nio.ByteBuffer buffer) throws SVNException
- Throws:
SVNException
-
parseImplicitAtom
public static SVNSkel parseImplicitAtom(java.nio.ByteBuffer buffer)
-
parseExplicitAtom
public static SVNSkel parseExplicitAtom(java.nio.ByteBuffer buffer)
-
createAtom
private static SVNSkel createAtom(SVNPropertyValue propertyValue)
-
createAtom
public static SVNSkel createAtom(java.lang.String str)
-
createAtom
public static SVNSkel createAtom(byte[] data)
-
createAtom
public static SVNSkel createAtom(byte[] data, int offset, int length)
-
createEmptyList
public static SVNSkel createEmptyList()
-
createPropList
public static SVNSkel createPropList(java.util.Map<java.lang.String,SVNPropertyValue> props) throws SVNException
- Throws:
SVNException
-
isAtom
public boolean isAtom()
-
getData
public byte[] getData()
-
getList
public java.util.List<SVNSkel> getList()
-
first
public SVNSkel first()
-
next
public SVNSkel next()
-
getChild
public SVNSkel getChild(int i) throws SVNException
- Throws:
SVNException
-
appendChild
public void appendChild(SVNSkel child) throws SVNException
- Throws:
SVNException
-
prepend
public void prepend(SVNSkel child) throws SVNException
- Throws:
SVNException
-
prependString
public void prependString(java.lang.String str) throws SVNException- Throws:
SVNException
-
prependPropertyValue
public void prependPropertyValue(SVNPropertyValue propertyValue) throws SVNException
- Throws:
SVNException
-
prependPath
public void prependPath(java.io.File path) throws SVNException- Throws:
SVNException
-
getListSize
public int getListSize()
-
getValue
public java.lang.String getValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
contentEquals
public boolean contentEquals(java.lang.String str)
-
containsAtomsOnly
public boolean containsAtomsOnly()
-
isValidPropList
public boolean isValidPropList()
-
parsePropList
public java.util.Map<java.lang.String,byte[]> parsePropList() throws SVNException- Throws:
SVNException
-
isValidInheritedProperties
public boolean isValidInheritedProperties()
-
createInheritedProperties
public static SVNSkel createInheritedProperties(java.util.Map<java.lang.String,SVNProperties> iprops) throws SVNException
- Throws:
SVNException
-
parseInheritedProperties
public java.util.List<Structure<StructureFields.InheritedProperties>> parseInheritedProperties() throws SVNException
- Throws:
SVNException
-
unparse
public byte[] unparse() throws SVNException- Throws:
SVNException
-
writeTo
public java.nio.ByteBuffer writeTo(java.nio.ByteBuffer buffer) throws SVNException- Throws:
SVNException
-
estimateUnparsedSize
private int estimateUnparsedSize()
-
useImplicit
private boolean useImplicit()
-
allocate
private static java.nio.ByteBuffer allocate(java.nio.ByteBuffer buffer, int capacity)
-
unread
private static java.nio.ByteBuffer unread(java.nio.ByteBuffer buffer, int length)
-
parseSize
private static int parseSize(java.nio.ByteBuffer buffer, int limit)
-
writeSizeBytes
private static int writeSizeBytes(int value, byte[] data)
-
getSizeBytes
private static byte[] getSizeBytes(int value)
-
error
private static void error(java.lang.String type) throws SVNException- Throws:
SVNException
-
removeChildren
public void removeChildren(java.util.Collection<SVNSkel> childrenToRemove)
-
removeAllChildren
public void removeAllChildren()
-
-