public class SVNSkel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_BUFFER_SIZE |
private java.util.List<SVNSkel> |
myList |
private SVNSkel |
myNext |
private byte[] |
myRawData |
static char |
TYPE_DIGIT |
static char |
TYPE_NAME |
static char |
TYPE_NOTHING |
static char |
TYPE_PAREN |
static char |
TYPE_SPACE |
private static char[] |
TYPES_TABLE |
Modifier | Constructor and Description |
---|---|
protected |
SVNSkel() |
protected |
SVNSkel(byte[] data) |
Modifier and Type | Method and Description |
---|---|
private static java.nio.ByteBuffer |
allocate(java.nio.ByteBuffer buffer,
int capacity) |
void |
appendChild(SVNSkel child) |
boolean |
containsAtomsOnly() |
boolean |
contentEquals(java.lang.String str) |
static SVNSkel |
createAtom(byte[] data) |
static SVNSkel |
createAtom(byte[] data,
int offset,
int length) |
static SVNSkel |
createAtom(java.lang.String str) |
private static SVNSkel |
createAtom(SVNPropertyValue propertyValue) |
static SVNSkel |
createEmptyList() |
static SVNSkel |
createInheritedProperties(java.util.Map<java.lang.String,SVNProperties> iprops) |
static SVNSkel |
createPropList(java.util.Map<java.lang.String,SVNPropertyValue> props) |
private static void |
error(java.lang.String type) |
private int |
estimateUnparsedSize() |
SVNSkel |
first() |
SVNSkel |
getChild(int i) |
byte[] |
getData() |
java.util.List<SVNSkel> |
getList() |
int |
getListSize() |
private static byte[] |
getSizeBytes(int value) |
static char |
getType(byte b) |
java.lang.String |
getValue() |
boolean |
isAtom() |
boolean |
isValidInheritedProperties() |
boolean |
isValidPropList() |
SVNSkel |
next() |
static SVNSkel |
parse(byte[] data) |
static SVNSkel |
parse(byte[] data,
int offset,
int length) |
static SVNSkel |
parse(java.nio.ByteBuffer buffer) |
static SVNSkel |
parseExplicitAtom(java.nio.ByteBuffer buffer) |
static SVNSkel |
parseImplicitAtom(java.nio.ByteBuffer buffer) |
java.util.List<Structure<StructureFields.InheritedProperties>> |
parseInheritedProperties() |
static SVNSkel |
parseList(java.nio.ByteBuffer buffer) |
java.util.Map<java.lang.String,byte[]> |
parsePropList() |
private static int |
parseSize(java.nio.ByteBuffer buffer,
int limit) |
void |
prepend(SVNSkel child) |
void |
prependPath(java.io.File path) |
void |
prependPropertyValue(SVNPropertyValue propertyValue) |
void |
prependString(java.lang.String str) |
void |
removeAllChildren() |
void |
removeChildren(java.util.Collection<SVNSkel> childrenToRemove) |
java.lang.String |
toString() |
byte[] |
unparse() |
private static java.nio.ByteBuffer |
unread(java.nio.ByteBuffer buffer,
int length) |
private boolean |
useImplicit() |
private static int |
writeSizeBytes(int value,
byte[] data) |
java.nio.ByteBuffer |
writeTo(java.nio.ByteBuffer buffer) |
private static final int DEFAULT_BUFFER_SIZE
public static final char TYPE_NOTHING
public static final char TYPE_SPACE
public static final char TYPE_DIGIT
public static final char TYPE_PAREN
public static final char TYPE_NAME
private static final char[] TYPES_TABLE
private final byte[] myRawData
private final java.util.List<SVNSkel> myList
private SVNSkel myNext
public static char getType(byte b)
public static SVNSkel parse(byte[] data) throws SVNException
SVNException
public static SVNSkel parse(byte[] data, int offset, int length) throws SVNException
SVNException
public static SVNSkel parse(java.nio.ByteBuffer buffer) throws SVNException
SVNException
public static SVNSkel parseList(java.nio.ByteBuffer buffer) throws SVNException
SVNException
public static SVNSkel parseImplicitAtom(java.nio.ByteBuffer buffer)
public static SVNSkel parseExplicitAtom(java.nio.ByteBuffer buffer)
private static SVNSkel createAtom(SVNPropertyValue propertyValue)
public static SVNSkel createAtom(java.lang.String str)
public static SVNSkel createAtom(byte[] data)
public static SVNSkel createAtom(byte[] data, int offset, int length)
public static SVNSkel createEmptyList()
public static SVNSkel createPropList(java.util.Map<java.lang.String,SVNPropertyValue> props) throws SVNException
SVNException
public boolean isAtom()
public byte[] getData()
public java.util.List<SVNSkel> getList()
public SVNSkel first()
public SVNSkel next()
public SVNSkel getChild(int i) throws SVNException
SVNException
public void appendChild(SVNSkel child) throws SVNException
SVNException
public void prepend(SVNSkel child) throws SVNException
SVNException
public void prependString(java.lang.String str) throws SVNException
SVNException
public void prependPropertyValue(SVNPropertyValue propertyValue) throws SVNException
SVNException
public void prependPath(java.io.File path) throws SVNException
SVNException
public int getListSize()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contentEquals(java.lang.String str)
public boolean containsAtomsOnly()
public boolean isValidPropList()
public java.util.Map<java.lang.String,byte[]> parsePropList() throws SVNException
SVNException
public boolean isValidInheritedProperties()
public static SVNSkel createInheritedProperties(java.util.Map<java.lang.String,SVNProperties> iprops) throws SVNException
SVNException
public java.util.List<Structure<StructureFields.InheritedProperties>> parseInheritedProperties() throws SVNException
SVNException
public byte[] unparse() throws SVNException
SVNException
public java.nio.ByteBuffer writeTo(java.nio.ByteBuffer buffer) throws SVNException
SVNException
private int estimateUnparsedSize()
private boolean useImplicit()
private static java.nio.ByteBuffer allocate(java.nio.ByteBuffer buffer, int capacity)
private static java.nio.ByteBuffer unread(java.nio.ByteBuffer buffer, int length)
private static int parseSize(java.nio.ByteBuffer buffer, int limit)
private static int writeSizeBytes(int value, byte[] data)
private static byte[] getSizeBytes(int value)
private static void error(java.lang.String type) throws SVNException
SVNException
public void removeChildren(java.util.Collection<SVNSkel> childrenToRemove)
public void removeAllChildren()