Lines Matching refs:getEncoding
82 String en = MimeUtility.getEncoding(ds);
87 * Test that getEncoding returns a valid value even if the file
98 assertTrue("getEncoding(DataSource)",
99 encodings.contains(MimeUtility.getEncoding(fds)));
100 assertTrue("getEncoding(DataHandler)",
101 encodings.contains(MimeUtility.getEncoding(new DataHandler(fds))));
105 * Test that getEncoding returns a valid value even if the content
125 assertTrue(encodings.contains(MimeUtility.getEncoding(bads)));
127 MimeUtility.getEncoding(new DataHandler(bads))));
130 assertTrue(encodings.contains(MimeUtility.getEncoding(bads)));
132 MimeUtility.getEncoding(new DataHandler(bads))));
135 assertTrue(encodings.contains(MimeUtility.getEncoding(bads)));
137 MimeUtility.getEncoding(new DataHandler(bads))));