public static Long parserLong(JsonPullParser parser) throws IOException, JsonFormatException {

		State eventType = parser.getEventType();
		if (eventType == State.VALUE_NULL) {
			return null;
		} else if (eventType == State.VALUE_LONG) {
			return parser.getValueLong();
		} else {
			throw new IllegalStateException("unexpected state. expected=VALUE_LONG, but get="
					+ eventType.toString());
		}
	}
public static Long parserLong ( JsonPullParser parser ) throws IOException , JsonFormatException { State eventType = parser . getEventType ( ) ; if ( eventType == State . VALUE_NULL ) { return null ; } else if ( eventType == State . VALUE_LONG ) { return parser . getValueLong ( ) ; } else { throw new IllegalStateException ( "unexpected state. expected=VALUE_LONG, but get=" + eventType . toString ( ) ) ; } }
Parses the current token as a long.
@param parser
@return {@link Long}
@throws IOException
@throws JsonFormatException
@author vvakame