public void strain ( Text line ) throws ParseException { try { Iterator < Text > it = line . split ( ' ' ) . iterator ( ) ; it . next ( ) ; Text token = it . next ( ) ; it = token . split ( ' ' ) . iterator ( ) ; name = it . next ( ) ; name . trim ( ) ; sessionID = it . next ( ) ; sessionID . trim ( ) ; sessionVersion = it . next ( ) ; sessionVersion . trim ( ) ; networkType = it . next ( ) ; networkType . trim ( ) ; addressType = it . next ( ) ; addressType . trim ( ) ; address = it . next ( ) ; address . trim ( ) ; } catch ( Exception e ) { throw new ParseException ( "Could not parse origin" , 0 ) ; } }
Reads attribute from text .