public class InputStreamToWire extends Object
| Constructor and Description |
|---|
InputStreamToWire(WireType wireType,
InputStream is)
Constructor for the InputStreamToWire class, initializing it with the specified WireType and InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
Wire |
readOne()
Reads data from the encapsulated DataInputStream and populates the Wire object with it.
|
public InputStreamToWire(WireType wireType, InputStream is)
wireType - The type of wire to use for data representation.is - The input stream from which data will be read.public Wire readOne() throws IOException
IOException - If any I/O errors occur.StreamCorruptedException - If the read data length is negative, indicating a corrupted stream.Copyright © 2024. All rights reserved.