public CMSTimeStampedData(InputStream in) throws IOException { try { initialize(ContentInfo.getInstance(new ASN1InputStream(in).readObject())); } catch (ClassCastException e) { throw new IOException("Malformed content: " + e); } catch (IllegalArgumentException e) { throw new IOException("Malformed content: " + e); } }