Outputable.java revision 13978:1993af50385d
1286425Sdim/*
2286425Sdim * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
3286425Sdim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4286425Sdim *
5286425Sdim * This code is free software; you can redistribute it and/or modify it
6286425Sdim * under the terms of the GNU General Public License version 2 only, as
7286425Sdim * published by the Free Software Foundation.
8286425Sdim *
9286425Sdim * This code is distributed in the hope that it will be useful, but WITHOUT
10286425Sdim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11341825Sdim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12286425Sdim * version 2 for more details (a copy is included in the LICENSE file that
13286425Sdim * accompanied this code).
14286425Sdim *
15286425Sdim * You should have received a copy of the GNU General Public License version
16341825Sdim * 2 along with this work; if not, write to the Free Software Foundation,
17296417Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18344779Sdim *
19296417Sdim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20341825Sdim * or visit www.oracle.com if you need additional information or have any
21296417Sdim * questions.
22344779Sdim */
23341825Sdimpackage org.netbeans.jemmy;
24341825Sdim
25341825Sdim/**
26344779Sdim * Communicate the identity of the output streams or writers used by the
27341825Sdim * application. Communicate the identity of the input stream, too. Any object
28296417Sdim * with methods that generates print output should implement this interface.
29341825Sdim *
30341825Sdim * @see org.netbeans.jemmy.TestOut
31341825Sdim *
32341825Sdim * @author Alexandre Iline (alexandre.iline@oracle.com)
33341825Sdim */
34341825Sdimpublic interface Outputable {
35341825Sdim
36341825Sdim    /**
37341825Sdim     * Defines print output streams or writers.
38341825Sdim     *
39341825Sdim     * @param out Identify the streams or writers used for print output.
40341825Sdim     * @see #getOutput
41341825Sdim     */
42341825Sdim    public void setOutput(TestOut out);
43341825Sdim
44341825Sdim    /**
45341825Sdim     * Returns print output streams or writers.
46341825Sdim     *
47341825Sdim     * @return an object that contains references to objects for printing to
48341825Sdim     * output and err streams.
49341825Sdim     * @see #setOutput
50341825Sdim     */
51327952Sdim    public TestOut getOutput();
52296417Sdim}
53296417Sdim