JUCE
Classes | Functions
juce_OutputStream.h File Reference

Classes

class  OutputStream
 The base class for streams that write data to some kind of destination. More...
 

Functions

JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, int number)
 Writes a number to a stream as 8-bit characters in the default system encoding. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, int64 number)
 Writes a number to a stream as 8-bit characters in the default system encoding. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, double number)
 Writes a number to a stream as 8-bit characters in the default system encoding. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, char character)
 Writes a character to a stream. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, const char *text)
 Writes a null-terminated text string to a stream. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, const MemoryBlock &data)
 Writes a block of data from a MemoryBlock to a stream. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, const File &fileToRead)
 Writes the contents of a file to a stream. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, InputStream &streamToRead)
 Writes the complete contents of an input stream to an output stream. More...
 
JUCE_API OutputStream &JUCE_CALLTYPE operator<< (OutputStream &stream, const NewLine &)
 Writes a new-line to a stream. More...
 

Function Documentation

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
int  number 
)

Writes a number to a stream as 8-bit characters in the default system encoding.

Referenced by OutputStream::getNewLineString().

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
int64  number 
)

Writes a number to a stream as 8-bit characters in the default system encoding.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
double  number 
)

Writes a number to a stream as 8-bit characters in the default system encoding.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
char  character 
)

Writes a character to a stream.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
const char *  text 
)

Writes a null-terminated text string to a stream.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
const MemoryBlock data 
)

Writes a block of data from a MemoryBlock to a stream.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
const File fileToRead 
)

Writes the contents of a file to a stream.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
InputStream streamToRead 
)

Writes the complete contents of an input stream to an output stream.

JUCE_API OutputStream& JUCE_CALLTYPE operator<< ( OutputStream stream,
const NewLine  
)

Writes a new-line to a stream.

You can use the predefined symbol 'newLine' to invoke this, e.g.

1 myOutputStream << "Hello World" << newLine << newLine;
See also
OutputStream::setNewLineString