Package org.eclipse.jetty.client.util
Class MultiPartContentProvider.MultiPartIterator
- java.lang.Object
-
- org.eclipse.jetty.client.util.MultiPartContentProvider.MultiPartIterator
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<java.nio.ByteBuffer>
,Synchronizable
,Callback
,Invocable
- Enclosing class:
- MultiPartContentProvider
private class MultiPartContentProvider.MultiPartIterator extends java.lang.Object implements java.util.Iterator<java.nio.ByteBuffer>, Synchronizable, Callback, java.io.Closeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
private java.util.Iterator<java.nio.ByteBuffer>
iterator
private MultiPartContentProvider.State
state
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MultiPartIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
failed(java.lang.Throwable x)
Callback invoked when the operation fails.java.lang.Object
getLock()
boolean
hasNext()
java.nio.ByteBuffer
next()
void
succeeded()
Callback invoked when the operation completes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
-
-
-
Field Detail
-
iterator
private java.util.Iterator<java.nio.ByteBuffer> iterator
-
index
private int index
-
state
private MultiPartContentProvider.State state
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next()
- Specified by:
next
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
getLock
public java.lang.Object getLock()
- Specified by:
getLock
in interfaceSynchronizable
- Returns:
- the lock object to synchronize on
-
succeeded
public void succeeded()
Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Callback
Callback invoked when the operation fails.
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-