public class SVNSubstitutor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
ALL |
private static byte[] |
EOLS |
private static int |
KEYWORD_MAX_LENGTH |
private static byte[] |
KEYWORDS |
private byte[] |
myEOL |
private byte[] |
myEOLBuffer |
private int |
myEOLBufferLength |
private byte[] |
myInteresting |
private boolean |
myIsExpand |
private boolean |
myIsRepair |
private byte[] |
myKeywordBuffer |
private int |
myKeywordBufferLength |
private java.util.Map |
myKeywords |
private byte[] |
myLastEOL |
private int[] |
myLastEOLLength |
| Constructor and Description |
|---|
SVNSubstitutor(byte[] eol,
boolean repair,
java.util.Map keywords,
boolean expand) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isInteresting(byte p) |
private byte[] |
matchKeyword(byte[] src,
int offset,
int length) |
private static java.nio.ByteBuffer |
substituteEOL(java.nio.ByteBuffer dst,
byte[] eol,
int eolLength,
byte[] lastEOL,
int[] lastEOLLength,
byte[] nextEOL,
int nextEOLLength,
boolean repair) |
private static int |
substituteKeyword(byte[] src,
int offset,
int length,
byte[] keyword,
byte[] value) |
java.nio.ByteBuffer |
translateChunk(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst) |
private int |
translateKeyword(byte[] src,
int offset,
int length,
byte[] name) |
private static void |
unread(java.nio.ByteBuffer buffer,
int length) |
private static java.nio.ByteBuffer |
write(java.nio.ByteBuffer dst,
byte[] bytes,
int offset,
int length) |
private static final byte[] ALL
private static final byte[] EOLS
private static final byte[] KEYWORDS
private static final int KEYWORD_MAX_LENGTH
private boolean myIsRepair
private boolean myIsExpand
private java.util.Map myKeywords
private byte[] myEOL
private byte[] myLastEOL
private byte[] myInteresting
private byte[] myEOLBuffer
private byte[] myKeywordBuffer
private int[] myLastEOLLength
private int myKeywordBufferLength
private int myEOLBufferLength
public SVNSubstitutor(byte[] eol,
boolean repair,
java.util.Map keywords,
boolean expand)
public java.nio.ByteBuffer translateChunk(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst)
throws SVNException
SVNExceptionprivate boolean isInteresting(byte p)
private byte[] matchKeyword(byte[] src,
int offset,
int length)
private int translateKeyword(byte[] src,
int offset,
int length,
byte[] name)
private static void unread(java.nio.ByteBuffer buffer,
int length)
private static int substituteKeyword(byte[] src,
int offset,
int length,
byte[] keyword,
byte[] value)
private static java.nio.ByteBuffer substituteEOL(java.nio.ByteBuffer dst,
byte[] eol,
int eolLength,
byte[] lastEOL,
int[] lastEOLLength,
byte[] nextEOL,
int nextEOLLength,
boolean repair)
throws SVNException
SVNExceptionprivate static java.nio.ByteBuffer write(java.nio.ByteBuffer dst,
byte[] bytes,
int offset,
int length)