A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream.
DataInputStream is not necessarily safe for multithreaded access. Thread safety is optional and is the responsibility of users of methods in this class.
@author Arthur van Hoff
@version 1.77, 06/07/06
@see java.io.DataOutputStream
@since JDK1.0
public synchronized void reset() throws JMSException {
if (this.writeOnly) {
this.content = this.baos.toByteArray();
}
this.bais = new ByteArrayInputStream(this.content);
this.dataIs = new DataInputStream(this.bais);
if (!this.dataIs.markSupported())
throw new XBException(ErrorCode.INTERNAL_NOTIMPLEMENTED.getDescription(), "Mark is not supported for the stream. Can not recover in case of an IOException");
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.