Did refactoring parseLine().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>