edu.wpi.first.wpilibj.networktables2.stream
Class SimpleIOStream
java.lang.Object
edu.wpi.first.wpilibj.networktables2.stream.SimpleIOStream
- All Implemented Interfaces:
- IOStream
- Direct Known Subclasses:
- SocketStream
public class SimpleIOStream
- extends Object
- implements IOStream
An IOStream that wraps an InputStream
and an OutputStream
- Author:
- Mitchell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIOStream
public SimpleIOStream(InputStream is,
OutputStream os)
- Create a new SimpleIOStream
- Parameters:
is
- os
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interface IOStream
- Returns:
- the input stream for this IOStream
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface IOStream
- Returns:
- the output stream for this IOStream
close
public void close()
- Description copied from interface:
IOStream
- completely close the stream
- Specified by:
close
in interface IOStream
Copyright © 2013. All rights reserved.