Class SseEventInputImpl
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.sse.SseEventInputImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,EventInput
public class SseEventInputImpl extends Object implements EventInput, Closeable
-
-
Constructor Summary
Constructors Constructor Description SseEventInputImpl(Annotation[] annotations, MediaType streamType, MediaType elementType, MultivaluedMap<String,String> httpHeaders, InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClosed()InboundSseEventread()InboundSseEventread(Providers providers)byte[]readEvent(InputStream in)
-
-
-
Constructor Detail
-
SseEventInputImpl
public SseEventInputImpl(Annotation[] annotations, MediaType streamType, MediaType elementType, MultivaluedMap<String,String> httpHeaders, InputStream inputStream)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isClosed
public boolean isClosed()
-
read
public InboundSseEvent read() throws IOException
- Throws:
IOException
-
read
public InboundSseEvent read(Providers providers) throws IOException
- Throws:
IOException
-
readEvent
public byte[] readEvent(InputStream in) throws IOException
- Throws:
IOException
-
-