Byte stream - CompWisdom
About us  |  Why use us?  |  Press  |  Contact us

 

Topic: Byte stream


  
 Byte stream - Wikipedia, the free encyclopedia
A byte stream is an abstraction used in computer science to describe a particular kind of communication channel between two entities.
The pipe mechanism used in a number of operating systems, such as Unix and DOS, is a unidirectional byte stream.
Formally, it is a channel (often bidirectional, but sometimes unidirectional) down which one entity can send a sequence of bytes to the entity on the other end.
http://en.wikipedia.org/wiki/Byte_stream

  
 Java 2 Platform SE v1.3.1: Class InputStream
This abstract class is the superclass of all classes representing an input stream of bytes.
bytes of data from the input stream into an array of bytes.
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html

  
 Zvon - RFC 1037 [NFILE - A File Access Protocol] - BYTE STREAM WITH MARK
The Byte Stream with Mark is built on an underlying stream, which must support the transmission of 8-bit bytes.
A byte count of zero is recognized as a mark.
Nevertheless, the Byte Stream with Mark must extract the count of the full Byte Stream with Mark record from the first such buffer of each Byte Stream with Mark record, and maintain and update this count as succeeding component buffers are read.
http://www.zvon.org/tmRFC/RFC1037/Output/chapter12.html

  
 get_byte/2
If the stream position is neither end-of-stream or past-end-of-stream then let Byte be the next byte to be read from the input stream, the stream position is advanced one byte.
The input stream must be a binary stream that was opened for reading.
If the stream has the property eof_action(reset) then the stream position is reset so that input can be read from it again, else if the stream has the property eof_action(eof_code) then if the number -1 and Byte are unifiable then get_byte/2 succeeds else fails.
http://www.trinc-prolog.com/doc/pl_p62.htm

  
 Patent 5448746: System for comounding instructions in a byte stream prior to fetching and identifying the instructions ...
That is, a 2 byte instruction is capable of parallel execution in this particular example with another 2 byte or another 4 byte instruction and a 4 byte instruction is capable of parallel execution with another 2 byte or another 4 byte instruction.
One such system may be a system where a byte string to be compounded is such that it is known that there are no data bytes in the instruction string, and when the location of a reference point, such as the opcode of the first instruction, is known.
In the simplest case, a byte string is to be compounded when it is known that there are no data bytes in the instruction stream, and when the location of the opcode of the first instruction is known.
http://www.freepatentsonline.com/5448746.html

  
 [No title]
:- pred byte2b(status, byte, byte, stream(byte), stream(message), io__state, io__state).
:- pred byte1b(status, byte, stream(byte), stream(message), io__state, io__state).
:- pred byte2(status, byte, stream(byte), stream(message), io__state, io__state).
http://www.cs.mu.oz.au/481/project/agents/midi.m

  
 CLHS: Function READ-BYTE
Should signal an error of type error if stream is not a binary input stream.
If there are no bytes remaining in the stream and eof-error-p is true, an error of type end-of-file is signaled.
read-byte reads and returns one byte from stream.
http://www.lisp.org/HyperSpec/Body/fun_read-byte.html

  
 21.3. The Streams Dictionary [CLHS-21.2]
and the index of the first byte that was not output.
When a #\Newline is output to (respectively input from) a file stream, its file position is increased by 2 since #\Newline is encoded as CR / LF in the file.
data is converted to/from the 8-bit bytes that the underlying OS uses.
http://clisp.cons.org/impnotes/stream-dict.html

  
 FAQ - UTF and BOM
The BE form uses big-endian byte serialization (most significant byte first), the LE form uses little-endian byte serialization (least significant byte first) and the unmarked form uses big-endian byte serialization by default, but may include a byte order mark at the beginning to indicate the actual byte serialization used.
When data are exchange in the same byte order as they were in the memory of the originating system, they may appear to be in the wrong byte order on the receiving system.
A: Data types longer than a byte can be stored in computer memory with the most significant byte (MSB) first or last.
http://www.unicode.org/unicode/faq/utf_bom.html

  
 QNX Developer Support
A file can be, for example, a data set that you can read and write repeatedly (such as a disk file), a stream of bytes generated by a program (such as a pipeline), or a stream of bytes received from or sent to a peripheral device (such as the keyboard or display).
A byte stream treats a file as a sequence of bytes.
They can, however, append an arbitrary number of null bytes to the file that you write with a binary stream.
http://www.qnx.com/developers/docs/momentics621_docs/dinkum_en/abridged/lib_file.html

  
 Reliable Byte-Stream (TCP)
This means that the number of bytes written by the sender is not necessarily the same as the number of bytes read by the receiver.
For example, the application might write 8 bytes, then 2 bytes, then 20 bytes to a TCP connection, while on the receiving side, the application reads 5 bytes at a time inside a loop that iterates 6 times.
TCP is a byte-oriented protocol, which means the sender writes bytes into a TCP connection and the receiver reads bytes out of the TCP connection.
http://www.cs.arizona.edu/llp/book/node63.html

  
 SWI-Prolog 4.0.3 Reference Manual: Section 3.18
Reads the next input byte like get_byte/1, but does not remove it from the input stream.
Reads the next input byte like get_byte/2, but does not remove it from the stream.
The end-of-stream test is only available on buffered input stream (unbuffered input streams are rarely used, see open/4).
http://www.cis.uni-muenchen.de/docs/prolog/sec-3.18.html

  
 DataInput
The bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.
The bits that make up the character value are in positions 0 through 3 of the first byte and bit positions 0 through 5 of the other two bytes.
http://www.svtehs.com/ipjv/ApiDoc/java/io/DataInput.html

  
 System Call I/O
If a tape is accessed as byte stream as in the previous example, but is actually a blocked tape, an error will be returned on the I/O request as the byte count is not a multiple of 4096 bytes.
The ER90 device cannot access data that begins at an odd-byte memory address, therefore, byte stream data must be input and output to the device in even increments.
The following example shows you how to read 100 bytes, followed by another request to read the next 3 bytes from a tape file that has a maximum block size of 10,000 bytes, using transparent buffered I/O. This example can be used on all IOS systems.
http://mare.essc.psu.edu/CrayDoc/manuals/2051_2.0.2/html-2051_2.0.2/e5idb8smg.html

  
 Byte-stream File Handling
Byte-stream I/O deals with a stream of bytes; there is no concept of an end-of-file mark and so you must be careful to ensure that you do not read beyond the end of the file.
The following example program contains routines to open and close files to be processed as byte-stream files, one for input, one for output and to read and write individual bytes using buffering.
* Examine each byte, and process as required when the * appropriate byte is found (as identified by the when * clause) perform get-byte perform until eof evaluate next-byte when.......
http://www.emunix.emich.edu/info/cobol/books/fhbyte.htm

  
 dBforums - byte stream parsing
first byte ('A') is one piece of data, the next bye is the next peice of data, bytes
I am writing a program which parses out a byte stream into a data structure.
> bytes 3-5 are the next, 6-14 the next and so on.
http://www.dbforums.com/t387376.html

  
 jGuru: Difference between character and byte stream.
Character streams convert the underlying data bytes to Unicode, which is a costly operation.
In real time, we are suggested to use only bytes and not streams.
Can any one tell what is the difference between the character and byte stream.
http://www.jguru.com/forums/view.jsp?EID=1220422

  
 [No title]
The byte to write is passed in w.
There is no handshaking, so any bytes ; received while the buffer is full are ignored (gracefully).
Thus, even though a write ; cycle is 5 ms, data can effectively be written at 3200 bytes per second.
http://www.ugcs.caltech.edu/~bret/images/create/electronics/dcu_src.txt

  
 Software Development with Java
We could have used a single byte like "-1", but it is better to a code that is at the same level as the rest of the communication (strings, in this case).
For example, a Unix file is a bunch of bytes.
Now, eventually even Unicode is represented in bytes, so there has to be a way to extract the byte output.
http://www.seas.gwu.edu/~simhaweb/java/lectures/module13/module13.html

  
 Edinburgh University Library: Projects: Digital Preservation- Methods
In their project recommendations, they state that it is safer to preserve the simple byte stream of the object separately from the medium it was created on.
This is to some extent the process of combining an emulation approach with migration, as one has to preserve a tool with the digital object to migrate it to its original platform.
The tool referenced in the metadata could either be a software specification or an emulator to mimic the hardware or software environment.
http://www.lib.ed.ac.uk/sites/digpres/methodsencapsulation.shtml

  
 mms-computing : java CAPI ISDN byte stream to A-Law, u-Law and PCM sound converter classes
ISDN byte streams are encoded as either u-Law (North America, Japan) or A-Law (most other countries) [2] with the bit order 'swapped'.
Java classes that convert A-Law or u-Law byte streams into PCM byte streams or *.wav files and vice versa.
The bits in every byte need to be 'swapped' like this : 0x00 -> 0x00, 0x01 -> 0x80, 0x02->0x40, 0x03->0xc0...
http://www.mms-computing.co.uk/uk/co/mmscomputing/device/capi/sound

  
 User Level Byte-Stream Layer for High Performance Network Interconnects
The minimum deliverable for this project is the implementation of such a streaming library and its use with a simple test program.
Time permitting, an extension of this project asks the student to write a few micro-benchmarks with which they will evaluate the performance differences between their new user-level library and the existing kernel-level library, for different message sizes and message rates.
You task in this project is to implement a user level stream layer on top of the SBus-2 SCI cards.
http://www.cc.gatech.edu/classes/cs7100_98_fall/projects/schwan01.html

  
 Byte Stream Monitor
BSP is a key to a byte stream producer.
As above, except BSC is a byte stream consumer which can accept limit bytes on the first call.
Let BSMC be the byte stream monitor creator.
http://www.cis.upenn.edu/~KeyKOS/agorics/KeyKos/Gnosis/152.html

  
 Patent 6289461: Bi-directional process-to-process byte stream protocol
A process refers to an active execution of a computation, and is also commonly referred to as a task, job, or thread.
Therefore, in order to utilize distributed programming, a need exits for a bi-directional, process-to-process byte stream protocol that can traverse a firewall, maintain the level of security provided by the firewall, and provide reliable communications over inherently unreliable media.
In order to perform distributed programming, it is necessary for two individual processes to maintain a bi-directional byte stream.
http://www.freepatentsonline.com/6289461.html

  
 [No title]
This allows the: ;;; (ldb (byte 8 component-positioni) data) to be compiled efficiently.
;;; 3/ 4/99 CJ Vogt - another compatability problem, convert all 'unsigned-byte ;;; to '(unsigned-byte 8) ;;; 3/16/99 CJ Vogt - when writing a jpeg file, APP0 header should be 16 bytes, ;;; not 14, with the added 2 bytes representing the x,y size ;;; of the thumbnail, so I'll set them both to 0.
:BGR puts Red ;;; in the LS byte, then Green, then Blue in the MS byte.
http://members.cox.net/vogt/jpeg.lisp

  
 [No title]
= bytes 64) (write-svndiff-integer bytes instruction-stream)) (write-svndiff-integer offset instruction-stream))) (ecase (svndiff-op-kind op) (:copy-target (encode-copy #x40)) (:copy-source (encode-copy #x00)) (:new-data (let ((insn-byte #x80)) ; first two bits `10' (when (
= bytes 64) (write-svndiff-integer bytes instruction-stream)) (dotimes (i bytes) (write-byte (aref target (+ i offset)) data-stream)))))))) (defun calculate-vdelta-insts (vdelta-table source target) "Return a list of SVNDIFF-OPs suitable for patching SOURCE to TARGET.
http://www.cs.rice.edu/~froydnj/lisp/svndiff.lisp

  
 ALSA project - the C library reference: Sequencer event <-> MIDI byte stream coder
count of bytes of MIDI byte stream to encode
Read one byte and encode to sequencer event if finished.
Read byte and encode to sequencer event if finished.
http://www.alsa-project.org/alsa-doc/alsa-lib/group___m_i_d_i___event.html

  
 Oracle Business Components for Java 3.2: Class TypeMarshaller
Reads a boolean value from a byte stream.
Reads a Java object of a specified class from a byte stream.
Reads a 64-bit Java floating-point number from a byte stream.
http://www.cednet.it/doc/rt/oracle/jbo/common/TypeMarshaller.html

  
 14.6 imghdr -- Determine the type of image contained in a file or byte stream.
module determines the type of image contained in a file or byte stream.
14.6 imghdr -- Determine the type of image contained in a file or byte stream.
-- Determine the type of image contained in a file or byte stream.
http://www.ndim.edrc.cmu.edu/Help/Python-1.5/html/lib/module-imghdr.html

  
 specifying byte stream type for Read File with Type Descriptor
0x0402 for a Word), but Read File will just see that the byte stream type is a uint32.
Is there a way to generate a Type Descriptor and output it from a Case structure?
I'm trying to write a VI that reads an image file format that can have different datatypes.
http://www.codecomments.com/message304872.html

  
 Byte input/output
These built-in predicates enable a single byte to be input from and output to a binary stream.
The maximum number of bytes that can be successively pushed back is given by the
unifies with the next byte that will be read from the stream associated with the stream-term or alias
http://pauillac.inria.fr/~diaz/gnu-prolog/manual/manual036.html

  
 Java I/O
Methods to read bytes from the input stream
reads the next byte from the input file stream
Reads a byte stream and converts into integer values representing UNICODE characters
http://wolffmad.com/java2/weeklyTopics/io/io.html

  
 DocFlavor.INPUT_STREAM (Java 2 Platform SE 5.0)
Constructs a new doc flavor with the given MIME type and a print data representation class name of
Class DocFlavor.INPUT_STREAM provides predefined static constant DocFlavor objects for example doc flavors using a byte stream (
(big-endian byte ordering), print data representation class name =
http://www.longpath.org/javadocs/api/javax/print/DocFlavor.INPUT_STREAM.html

  
 Zvon - RFC 292 [GRAPHICS PROTOCOL - LEVEL 0 ONLY] - APPENDIX 1: BNF FOR THE GRAPHICS PROTOCOL BYTE STREAM
Note that "empty_string" means "zero bytes," and not "a whose is zero".
byte stream> ::= ::= empty_string
Zvon - RFC 292 [GRAPHICS PROTOCOL - LEVEL 0 ONLY] - APPENDIX 1: BNF FOR THE GRAPHICS PROTOCOL BYTE STREAM
http://www.zvon.org/tmRFC/RFC292/Output/chapter9.html

  
 Byte Stream
Stream means that the connection is treated as a stream of bytes.
The user application does not need to package data in individual datagrams (as with UDP).
http://www.cs.rpi.edu/courses/netprog/lectures/ppthtml/tcpip/sld046.htm

  
 XML Byte Stream
As for the size of a string, I believe it's one byte under 2GB (the size of the positive portion of an int).
The HttpWebRequest.Write method accepts a byte[] as the parameter.
Viewing: Dev Shed Forums > Programming Languages > C Programming > XML Byte Stream
http://forums.devshed.com/t73120/s.html

  
 MySQL Lists: maxdb: RE: JDBC: LONG BYTE stream writing
The driver stops reading the stream if the number of bytes is reached, which was specified by the length parameter.
MySQL Lists: maxdb: RE: JDBC: LONG BYTE stream writing
August 2002 20:48 > To: SAPDB mailing list > Subject: JDBC: LONG BYTE stream writing > > > hello again!
http://lists.mysql.com/maxdb/7961

  
 dBforums - Sending SQL Results To Byte Stream
Somebody suggested for me to pass it as a byte stream instead of
> Somebody suggested for me to pass it as a byte stream instead of
http://www.dbforums.com/t514158.html

  
 Windows Programming: Loading Icon from a byte stream.
The contents of the icon file are stored in a BYTE buffer.
Windows Programming: Loading Icon from a byte stream.
I do not want to write that file to the file and use the SDKs ExtractIcon function.
http://www.experts-exchange.com/Programming/Programming_Platforms/Win_Prog/Q_20282151.html

  
 dib.lisp
(defgeneric make-pixel-writers (bits-per-pixel)) (defmethod make-pixel-writers ((bits-per-pixel (eql 1))) (let ((bit 1) (byte 0)) (values (lambda (stream pixel) (when (eql pixel 1) (incf byte bit)) (when (eql (setf bit (ash bit 1)) #x100) (write-byte byte stream) (setf bit 1 byte 0))) (lambda (stream) ;; Pad the final byte if necessary.
(unless (eql bit 1) (write-byte byte stream)))))) (defmethod make-pixel-writers ((bits-per-pixel (eql 4))) (let ((hilo nil) (save 0)) (values (lambda (stream pixel) (if (null hilo) (setq save (logand #x0f pixel) hilo t) (progn (write-byte (logior save (ash (logand pixel #x0f) 4)) stream) (setf hilo nil)))) (lambda (stream) ;; Pad the final byte if necessary.
The first is a function that writes a pixel value ;; to a stream.
http://www.dynamiclearningcenter.com/samples/ray-tracing/dib.lisp

  
 Mainframeforum - Character stream & byte stream over the same socket
Then you can just have a single byte stream for both the file name and
I am doing (another) file transfer program using socket connection.
I would use DataOutputStream.writeUTF() to send the file name, and read it with
http://mainframeforum.com/t235650.html

  
 Web page hosting : rslist : 2.5.75
* The next byte in the stream is the resource type
* byte_steam_size_needed - Calculated size of the byte stream
* Set the byte stream to point to the next resource
http://www.oxxus.net/host/2.5.75/hosting-rslist.htm

  
 Info Node: (libc.info)Byte Stream Example
Byte Stream Socket Example -------------------------- Here is an example client program that makes a connection for a byte stream socket in the Internet namespace.
It doesn't do anything particularly interesting once it has connected to the server; it just sends a text string to the server and exits.
http://mulliken.chem.hope.edu/cgi-bin/info2www.cgi?(libc)Byte+Stream+Example

  
 NodeWorks - Encyclopedia: Reliable byte stream
A reliable byte stream is a byte stream in which the bytes which emerge from the communication channel at the recipient are exactly the same, and in the exact same order, as the sender inserted into the channel.
Communication protocols which implement reliable byte streams, generally over some unreliable lower level, use a number of mechanisms to provide the reliability.
All data items are identified with a sequence number, which is used both to make sure that the data is delivered to the entity at the other end in the correct order, and to check for lost data items.
http://pedia.nodeworks.com/R/RE/REL/Reliable_byte_stream

  
 Byte Stream File Transfer (BSFT)
Description: An integral part of The Open Group's strategy for coexistence and migration of users between the Internet Protocol Suite (often referred to as TCP/IP) and the Open Systems Interconnect modes (OSI), this specification defines a Byte Stream File Transfer (BSFT) service that provides the means of transferring unstructured files between Open Group-compliant systems.
Was P010 Byte Stream File Transfer (BSFT) 6/1990
The BSFT interface has been derived from the one used by the File Transfer Protocol (FTP) of IPS, but uses an ISO profile.
http://www.opengroup.org/pubs/catalog/c194_a.htm

  
 Byte Stream Multiplexor
BSP is a byte stream producer that is associated with the multiplexor.
Design note: the length of the data is sent at the end as well as the beginning to facilitate searching backwards through the byte stream.
Sends the following on the BSP associated with the branch's multiplexor, in order and contiguously:
http://www.cis.upenn.edu/~KeyKOS/agorics/KeyKos/Gnosis/142.html

  
 Streaming Media - Live Streaming Audio & Video
VitalStream created a new software development kit to make it easier to deploy your Flash video streams with components for playlists, ad serve integration and more.
Streaming Media - Live Streaming Audio & Video
http://www.vitalstream.com

  
 [No title]
+ bytes are already encoded and are ;;; prepended to
;;; ;;; Sysex Messages: ;;; ;;; Bytes: F0 ;;; Only F0 is encoded in message.
(setf size (%read-variable-quantity stream)) (file-position stream (+ size (file-position stream))) (multiple-value-bind (q m d) (%midifile-read-message stream info) (values (incf ticks q) m d)))))) (defun %midifile-unread-message (stream message &optional (delta 0)) (file-position stream (- (file-position stream) (+ (midi-message-size message) (%variable-quantity-length delta))))) ;;; ;;; Meta Messages: ;;; ;;; Bytes: FF ;;; FF and
http://www.notam02.no/internt/cm-sys/cm-1.4/midi/mf.lisp

  
 .NET 247 : C# and Byte Stream on microsoft.public.dotnet.framework.interop
messages arrive as a stream of bytes that get added to a byte array.
.NET 247 : C# and Byte Stream on microsoft.public.dotnet.framework.interop
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion.
http://www.dotnet247.com/247reference/msgs/58/291261.aspx

  
 Open Group Publications: Superseded Title
Now XO/CAE/91/400 or C194 Byte Stream File Transfer (BSFT)
The following publication is no longer available - Refer to document shown below.
http://www.ludd.luth.se/~ragge/html/pubs/p010.htm

Compwisdom
 About us   |  Why use us?   |  Press   |  Contact us

 Copyright © 2006 CompWisdom.com Usage implies agreement with terms.