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