@Test void checkForNotSupportedMimeTypeSupport() throws IOException { final byte[] rawData = {0x51, 0x2b, 0x11, 0x3a, 0x4e}; final InputStream rawInputStream = new ByteArrayInputStream(rawData); final MimeTypeInputStream inputStream = new MimeTypeInputStream(rawInputStream); final MimeType mimeType = inputStream.getMimeType(); Assertions.assertNull(mimeType); Assertions.assertEquals(0x51, inputStream.read()); Assertions.assertEquals(0x2b, inputStream.read()); Assertions.assertEquals(0x11, inputStream.read()); }
public MimeType getMimeType() { return mimeType; }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); MimeType getMimeType(); }
MimeTypeInputStream extends FilterInputStream { public MimeType getMimeType() { return mimeType; } MimeTypeInputStream(final InputStream stream); MimeType getMimeType();  }