/** * Generate a reference token from an encoded (cooked) representation * * @param cooked the input * @return a token * @throws JsonPointerException illegal token (bad encode sequence) * @throws NullPointerException null input */ public static ReferenceToken fromCooked(final String cooked) throws JsonPointerException { BUNDLE.checkNotNull(cooked, "nullInput"); return new ReferenceToken(cooked, asRaw(cooked)); }
/** * Generate a reference token from an encoded (cooked) representation * * @param cooked the input * @return a token * @throws JsonPointerException illegal token (bad encode sequence) * @throws NullPointerException null input */ public static ReferenceToken fromCooked(final String cooked) throws JsonPointerException { BUNDLE.checkNotNull(cooked, "nullInput"); return new ReferenceToken(cooked, asRaw(cooked)); }