GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.juce.com — JUCE: juce::FileOutputStream Class Reference juce::FileOutputStream Class Reference Detailed DescriptionAn output stream that writes into a local file. The documentation for this class was generated from the following file:
Inheritance diagram for juce::FileOutputStream:
Constructors and Destructors◆ FileOutputStream()
Creates a FileOutputStream. If the file doesn't exist, it will first be created. If the file can't be created or opened (for example, because the parent directory of the file does not exist), the failedToOpen() method will return true. If the file already exists when opened, the stream's write-position will be set to the end of the file. To overwrite an existing file, you can truncate it like this: FileOutputStream stream (file);
if (stream.openedOk())
{
stream.setPosition (0);
stream.truncate();
...
}
FileOutputStream(const File &fileToWriteTo, size_t bufferSizeToUse=16384) Creates a FileOutputStream. Destroying a FileOutputStream object does not force the operating system to write the buffered data to disk immediately. If this is required you should call flush() before triggering the destructor.
◆ ~FileOutputStream()
Destructor. Member Functions◆ getFile()
Returns the file that this stream is writing to. ◆ getStatus()
Returns the status of the file stream. The result will be ok if the file opened successfully. If an error occurs while opening or writing to the file, this will contain an error message. ◆ failedToOpen()
Returns true if the stream couldn't be opened for some reason.
◆ openedOk()
Returns true if the stream opened without problems.
◆ truncate()
Attempts to truncate the file to the current write position. To truncate a file to a specific size, first use setPosition() to seek to the appropriate location, and then call this method. ◆ flush()
If the stream is using a buffer, this will ensure it gets written out to the destination. Implements juce::OutputStream. ◆ getPosition()
◆ setPosition()
Tries to move the stream's output position. Not all streams will be able to seek to a new position - this will return false if it fails to work.
Implements juce::OutputStream. ◆ write()
Writes a block of data to the stream. When creating a subclass of OutputStream, this is the only write method that needs to be overloaded - the base class has methods for writing other types of data which use this to do the work.
Implements juce::OutputStream. ◆ writeRepeatedByte()
Writes a byte to the output stream a given number of times.
Reimplemented from juce::OutputStream. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||