@Test(expected = UnsupportedOperationException.class) public void testRemove() throws Exception { try (BodyPartIterator mimeInput = new BodyPartIterator(generateByteArrayInput(false))) { mimeInput.next(); mimeInput.remove(); } }
@Override public MimeBodyPart next() { return bodyPartIterator.next().getPart(); }
BodyPartIterator extends MultipartIterator implements Iterator<MimeBodyPart> { @Override public MimeBodyPart next() { return bodyPartIterator.next().getPart(); } }
BodyPartIterator extends MultipartIterator implements Iterator<MimeBodyPart> { @Override public MimeBodyPart next() { return bodyPartIterator.next().getPart(); } BodyPartIterator(InputStream in);  BodyPartIterator(byte[] bytes); protected  BodyPartIterator(DataSource ds); }
BodyPartIterator extends MultipartIterator implements Iterator<MimeBodyPart> { @Override public MimeBodyPart next() { return bodyPartIterator.next().getPart(); } BodyPartIterator(InputStream in);  BodyPartIterator(byte[] bytes); protected  BodyPartIterator(DataSource ds); MimeBodyPart getBodyPart(String id); MimeBodyPart getBodyPart(int partNumber); @Override boolean hasNext(); @Override MimeBodyPart next(); @Override void close(); int size(); }
BodyPartIterator extends MultipartIterator implements Iterator<MimeBodyPart> { @Override public MimeBodyPart next() { return bodyPartIterator.next().getPart(); } BodyPartIterator(InputStream in);  BodyPartIterator(byte[] bytes); protected  BodyPartIterator(DataSource ds); MimeBodyPart getBodyPart(String id); MimeBodyPart getBodyPart(int partNumber); @Override boolean hasNext(); @Override MimeBodyPart next(); @Override void close(); int size();  }