|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.impl.mapbased.rpc.func.helper.MapUnmapper
public class MapUnmapper
Provides unmapping services to the P4Java RPC implementation. These are not what they probably sound like -- they're basically a way to serialise an input map for something like a changelist or job onto a single byte buffer to be sent to the server as a single data argument with newlines, tabs, etc.
The need for this will probably go away when we refactor the upper levels of P4Java to optimise and rationalise the use of maps overall.
Constructor Summary | |
---|---|
MapUnmapper()
|
Method Summary | |
---|---|
static String |
replaceNewlines(String str)
Replace all but the last newline in the incoming string with newline / tab pairs. |
static void |
unmapBranchMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a BranchSpec spec. |
static void |
unmapChangelistMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a change list. |
static void |
unmapClientMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a client map. |
static void |
unmapDepotMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a depot map. |
static void |
unmapJobMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a job. |
static void |
unmapLabelMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a Label Perforce label. |
static void |
unmapProtectionEntriesMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a list of protection entries. |
static void |
unmapStreamMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a stream map. |
static void |
unmapTriggerEntriesMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a list of trigger entries. |
static void |
unmapUserGroupMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a Perforce user group map. |
static void |
unmapUserMap(Map<String,Object> inMap,
StringBuffer strBuf)
Unmap a Perforce user map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapUnmapper()
Method Detail |
---|
public static void unmapChangelistMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapJobMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapClientMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapUserMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapUserGroupMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapLabelMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapBranchMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapDepotMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapProtectionEntriesMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapStreamMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static void unmapTriggerEntriesMap(Map<String,Object> inMap, StringBuffer strBuf)
inMap
- strBuf
- public static String replaceNewlines(String str)
str
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |