public String getParamName ( ) { int firstColon = myValue . indexOf ( ' ' ) ; if ( firstColon == - 1 || firstColon == myValue . length ( ) - 1 ) { return null ; } int secondColon = myValue . indexOf ( ' ' , firstColon + 1 ) ; if ( secondColon != - 1 ) { return myValue . substring ( firstColon + 1 , secondColon ) ; } return myValue . substring ( firstColon + 1 ) ; }
Returns the portion of the value after the first colon but before the second colon