/** * Decodes an Object using the base64 algorithm. This method * is provided in order to satisfy the requirements of the * Decoder interface, and will throw a DecoderException if the * supplied object is not of type byte[]. * * @param pObject Object to decode * @return An object (of type byte[]) containing the * binary data which corresponds to the byte[] supplied. * @throws IOException if the parameter supplied is not * of type byte[] */ public Object decode(Object pObject) throws IOException { if (!(pObject instanceof byte[])) { throw new IOException("Parameter supplied to Base64 decode is not a byte[]"); } return decode((byte[]) pObject); }
/** * Decodes an Object using the base64 algorithm. This method * is provided in order to satisfy the requirements of the * Decoder interface, and will throw a DecoderException if the * supplied object is not of type byte[]. * * @param pObject Object to decode * @return An object (of type byte[]) containing the * binary data which corresponds to the byte[] supplied. * @throws IOException if the parameter supplied is not * of type byte[] */ public Object decode(final Object pObject) throws IOException { if (!(pObject instanceof byte[])) { throw new IOException("Parameter supplied to Base64 decode is not a byte[]"); } return decode((byte[]) pObject); }
/** * Decodes an Object using the base64 algorithm. This method * is provided in order to satisfy the requirements of the * Decoder interface, and will throw a DecoderException if the * supplied object is not of type byte[]. * * @param pObject Object to decode * @return An object (of type byte[]) containing the * binary data which corresponds to the byte[] supplied. * @throws IOException if the parameter supplied is not * of type byte[] */ public Object decode(final Object pObject) throws IOException { if (!(pObject instanceof byte[])) { throw new IOException("Parameter supplied to Base64 decode is not a byte[]"); } return decode((byte[]) pObject); }