Package com.webmethods.jms.impl
Class WmJMSInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.webmethods.jms.impl.WmJMSInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,javax.jms.ExceptionListener
,javax.jms.MessageListener
public class WmJMSInputStream extends java.io.InputStream implements javax.jms.MessageListener, javax.jms.ExceptionListener
-
-
Constructor Summary
Constructors Constructor Description WmJMSInputStream(WmMessageConsumerImpl consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
currentReadBytePosition()
Get the current byte position which has been read by the clientlong
getReadTimeout()
java.lang.String
getStreamId()
void
markStreamBytePosition(int position)
Set the stream byte position for recoveryvoid
onException(javax.jms.JMSException ex)
void
onMessage(javax.jms.Message msg)
int
read()
void
setReadTimeout(long timeout)
void
setStreamId(java.lang.String streamId)
-
-
-
Constructor Detail
-
WmJMSInputStream
public WmJMSInputStream(WmMessageConsumerImpl consumer) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
setStreamId
public void setStreamId(java.lang.String streamId) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
getStreamId
public java.lang.String getStreamId()
-
markStreamBytePosition
public void markStreamBytePosition(int position)
Set the stream byte position for recovery- Parameters:
position
-
-
currentReadBytePosition
public int currentReadBytePosition()
Get the current byte position which has been read by the client
-
setReadTimeout
public void setReadTimeout(long timeout)
-
getReadTimeout
public long getReadTimeout()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
onException
public void onException(javax.jms.JMSException ex)
- Specified by:
onException
in interfacejavax.jms.ExceptionListener
-
onMessage
public void onMessage(javax.jms.Message msg)
- Specified by:
onMessage
in interfacejavax.jms.MessageListener
-
-