michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIInputStream; michael@0: interface nsIOutputStream; michael@0: michael@0: /** michael@0: * nsIIOUtil provdes various xpcom/io-related utility methods. michael@0: */ michael@0: [scriptable, uuid(e8152f7f-4209-4c63-ad23-c3d2aa0c5a49)] michael@0: interface nsIIOUtil : nsISupports michael@0: { michael@0: /** michael@0: * Test whether an input stream is buffered. See nsStreamUtils.h michael@0: * documentation for NS_InputStreamIsBuffered for the definition of michael@0: * "buffered" used here and for edge-case behavior. michael@0: * michael@0: * @throws NS_ERROR_INVALID_POINTER if null is passed in. michael@0: */ michael@0: boolean inputStreamIsBuffered(in nsIInputStream aStream); michael@0: michael@0: /** michael@0: * Test whether an output stream is buffered. See nsStreamUtils.h michael@0: * documentation for NS_OutputStreamIsBuffered for the definition of michael@0: * "buffered" used here and for edge-case behavior. michael@0: * michael@0: * @throws NS_ERROR_INVALID_POINTER if null is passed in. michael@0: */ michael@0: boolean outputStreamIsBuffered(in nsIOutputStream aStream); michael@0: };