Package totalcross
Class Launcher.IS2S
- java.lang.Object
-
- totalcross.io.Stream
-
- totalcross.Launcher.IS2S
-
-
Field Summary
-
Fields inherited from class totalcross.io.Stream
skipBuffer
-
-
Constructor Summary
Constructors Constructor Description IS2S(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this I/O connection, releasing any associated resources.intreadBytes(byte[] buf, int start, int count)Reads bytes from the stream.intwriteBytes(byte[] buf, int start, int count)Writes bytes to the stream.-
Methods inherited from class totalcross.io.Stream
asInputStream, asOutputStream, asStream, asStream, skipBytes, wrapInputStream, wrapInputStreamToStream, write, writeBytes, writeBytes, writeBytes
-
-
-
-
Method Detail
-
close
public void close()
Closes this I/O connection, releasing any associated resources. Once closed a connection is no longer valid.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
readBytes
public int readBytes(byte[] buf, int start, int count)Description copied from class:StreamReads bytes from the stream. Returns the number of bytes actually read or -1 if the end of the stream was reached. (if applicable to the stream)
-
writeBytes
public int writeBytes(byte[] buf, int start, int count)Description copied from class:StreamWrites bytes to the stream. Returns the number of bytes actually written or throws anIOExceptionif an error prevented the write operation from occurring.- Specified by:
writeBytesin classStream- Parameters:
buf- the byte array to write data fromstart- the start position in the byte arraycount- the number of bytes to write- Returns:
- the number of bytes actually written
-
-