@Test void checkEmptyData() throws IOException { final byte[] rawData = new byte[0]; final InputStream rawInputStream = new ByteArrayInputStream(rawData); final MimeTypeInputStream inputStream = new MimeTypeInputStream(rawInputStream); final MimeType mimeType = inputStream.getMimeType(); Assertions.assertNull(mimeType); Assertions.assertEquals(-1, 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();  }