public static BoBHash fromSrc ( String src ) { String hashType = src . substring ( src . lastIndexOf ( "cid:" ) + 4 , src . indexOf ( "+" ) ) ; String hash = src . substring ( src . indexOf ( "+" ) + 1 , src . indexOf ( "@bob.xmpp.org" ) ) ; return new BoBHash ( hash , hashType ) ; }
Get BoB hash from src attribute string .