/** * Constructs a new transparent EF file. * * @param info The info of the new file. * @param body The body of the new file. */ public TransparentEFFile(SIMFileInfo info, byte[] body) throws CardServiceException { if (!info.isTransparent()) { throw new CardServiceException("Invalid file info"); } this.info = info; if (body != null) { this.body = new byte[body.length]; System.arraycopy(body, 0, this.body, 0, body.length); } }
/** * Gets a textual representation of this object. * * @return a textual representation of this object. */ public String toString() { String result = info.toString() + ":\n"; result += Hex.bytesToPrettyString(body); return result; }