binaryoutputstream.cxx (ca5ec200) | binaryoutputstream.cxx (4e7b0f82) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 44 unchanged lines hidden (view full) --- 53 mbEof = !mxOutStrm.is(); 54} 55 56BinaryXOutputStream::~BinaryXOutputStream() 57{ 58 close(); 59} 60 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 44 unchanged lines hidden (view full) --- 53 mbEof = !mxOutStrm.is(); 54} 55 56BinaryXOutputStream::~BinaryXOutputStream() 57{ 58 close(); 59} 60 |
61void BinaryXOutputStream::flush() 62{ 63 if( mxOutStrm.is() ) try 64 { 65 mxOutStrm->flush(); 66 } 67 catch( Exception& ) 68 { 69 OSL_ENSURE( false, "BinaryXOutputStream::flush - flushing stream failed" ); 70 } 71} 72 |
|
61void BinaryXOutputStream::close() 62{ 63 OSL_ENSURE( !mbAutoClose || mxOutStrm.is(), "BinaryXOutputStream::close - invalid call" ); 64 if( mxOutStrm.is() ) try 65 { 66 mxOutStrm->flush(); 67 if( mbAutoClose ) 68 mxOutStrm->closeOutput(); --- 69 unchanged lines hidden --- | 73void BinaryXOutputStream::close() 74{ 75 OSL_ENSURE( !mbAutoClose || mxOutStrm.is(), "BinaryXOutputStream::close - invalid call" ); 76 if( mxOutStrm.is() ) try 77 { 78 mxOutStrm->flush(); 79 if( mbAutoClose ) 80 mxOutStrm->closeOutput(); --- 69 unchanged lines hidden --- |