DeviceStreams
✖
DeviceStreams
Details

- A device can be specified either by a DeviceObject or by a string representing a device class.
- Streams are automatically opened when a device is opened and are closed when it is closed.
- DeviceStreams can return InputStream or OutputStream objects.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Open a demo device and list its open streams:
In[1]:=1

✖
https://wolfram.com/xid/0dqvy9oj8n3-iz3ayl
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0dqvy9oj8n3-es2mgp
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0dqvy9oj8n3-6722j4
Out[3]=3

Look up streams by a list of patterns:
In[4]:=4

✖
https://wolfram.com/xid/0dqvy9oj8n3-8vz34p
Out[4]=4

In[5]:=5

✖
https://wolfram.com/xid/0dqvy9oj8n3-0vekv5
Read a list of bytes from an input stream associated with a device:
In[1]:=1

✖
https://wolfram.com/xid/0dqvy9oj8n3-nldh77
In[2]:=2

✖
https://wolfram.com/xid/0dqvy9oj8n3-ceiis4
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0dqvy9oj8n3-umby3c
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0dqvy9oj8n3-ugq6xj
Properties & Relations (1)Properties of the function, and connections to other functions
Input and output streams associated with a device are included in Streams:
In[1]:=1

✖
https://wolfram.com/xid/0dqvy9oj8n3-v0n6zo
In[2]:=2

✖
https://wolfram.com/xid/0dqvy9oj8n3-5tzvw1
Out[2]=2

DeviceClose closes any streams to and from the device:
In[3]:=3

✖
https://wolfram.com/xid/0dqvy9oj8n3-eeru2e
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0dqvy9oj8n3-v4xa8a
In[5]:=5

✖
https://wolfram.com/xid/0dqvy9oj8n3-vx0q62
Out[5]=5

Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.
✖
Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.
Text
Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.
✖
Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.
CMS
Wolfram Language. 2014. "DeviceStreams." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceStreams.html.
✖
Wolfram Language. 2014. "DeviceStreams." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceStreams.html.
APA
Wolfram Language. (2014). DeviceStreams. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceStreams.html
✖
Wolfram Language. (2014). DeviceStreams. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceStreams.html
BibTeX
✖
@misc{reference.wolfram_2025_devicestreams, author="Wolfram Research", title="{DeviceStreams}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceStreams.html}", note=[Accessed: 26-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_devicestreams, organization={Wolfram Research}, title={DeviceStreams}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceStreams.html}, note=[Accessed: 26-April-2025
]}