src/java.desktop/share/classes/java/applet/AppletContext.java
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 52740 52ea97fb80b0
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
50345
276cb4b17f79 8203498: The specification for java.applet package should be updated
serb
parents: 47498
diff changeset
     2
 * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.applet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Image;
50345
276cb4b17f79 8203498: The specification for java.applet package should be updated
serb
parents: 47498
diff changeset
    29
import java.io.IOException;
276cb4b17f79 8203498: The specification for java.applet package should be updated
serb
parents: 47498
diff changeset
    30
import java.io.InputStream;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.net.URL;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.Enumeration;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.Iterator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
/**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    36
 * This interface corresponds to an applet's environment: the document
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    37
 * containing the applet and the other applets in the same document.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * <p>
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    39
 * The methods in this interface can be used by an applet to obtain information
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    40
 * about its environment.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    42
 * @author Arthur van Hoff
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    43
 * @since 1.0
50345
276cb4b17f79 8203498: The specification for java.applet package should be updated
serb
parents: 47498
diff changeset
    44
 * @deprecated The Applet API is deprecated, no replacement.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 */
38470
6dd62dab450d 8157622: Add @Deprecated annotations to the Applet API classes
dtitov
parents: 32283
diff changeset
    46
@Deprecated(since = "9")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
public interface AppletContext {
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    48
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * Creates an audio clip.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    52
     * @param  url an absolute {@code URL} giving the location of the audio clip
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    53
     * @return the audio clip at the specified {@code URL}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    AudioClip getAudioClip(URL url);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    58
     * Returns an {@code Image} object that can then be painted on the screen.
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    59
     * The {@code url} argument that is passed as an argument must specify an
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    60
     * absolute {@code URL}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * <p>
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    62
     * This method always returns immediately, whether or not the image exists.
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    63
     * When the applet attempts to draw the image on the screen, the data will
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    64
     * be loaded. The graphics primitives that draw the image will incrementally
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    65
     * paint on the screen.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    67
     * @param  url an absolute {@code URL} giving the location of the image
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    68
     * @return the image at the specified {@code URL}
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    69
     * @see java.awt.Image
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    Image getImage(URL url);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    74
     * Finds and returns the applet in the document represented by this applet
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    75
     * context with the given name. The name can be set in the HTML tag by
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    76
     * setting the {@code name} attribute.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    78
     * @param  name an applet name
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    79
     * @return the applet with the given name, or {@code null} if not found
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    Applet getApplet(String name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    84
     * Finds all the applets in the document represented by this applet context.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    86
     * @return an enumeration of all applets in the document represented by this
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    87
     *         applet context
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    Enumeration<Applet> getApplets();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    92
     * Requests that the browser or applet viewer show the Web page indicated by
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    93
     * the {@code url} argument. The browser or applet viewer determines which
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    94
     * window or frame to display the Web page. This method may be ignored by
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    95
     * applet contexts that are not browsers.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
    97
     * @param url an absolute {@code URL} giving the location of the document
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    void showDocument(URL url);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   102
     * Requests that the browser or applet viewer show the Web page indicated by
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   103
     * the {@code url} argument. The {@code target} argument indicates in which
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   104
     * HTML frame the document is to be displayed. The target argument is
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   105
     * interpreted as follows:
21957
97758de70fbd 8028019: AWT Doclint warning/error cleanup
rriggs
parents: 19207
diff changeset
   106
     *
45648
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   107
     * <table class="striped">
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   108
     * <caption>Target arguments and their descriptions</caption>
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   109
     * <thead>
47498
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   110
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   111
     *     <th scope="col">Target Argument
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   112
     *     <th scope="col">Description
45648
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   113
     * </thead>
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   114
     * <tbody>
47498
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   115
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   116
     *     <th scope="row">{@code "_self"}
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   117
     *     <td>Show in the window and frame that contain the applet.
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   118
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   119
     *     <th scope="row">{@code "_parent"}
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   120
     *     <td>Show in the applet's parent frame. If the applet's frame has no
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   121
     *     parent frame, acts the same as "_self".
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   122
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   123
     *     <th scope="row">{@code "_top"}
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   124
     *     <td>Show in the top-level frame of the applet's window. If the
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   125
     *     applet's frame is the top-level frame, acts the same as "_self".
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   126
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   127
     *     <th scope="row">{@code "_blank"}
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   128
     *     <td>Show in a new, unnamed top-level window.
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   129
     *   <tr>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   130
     *     <th scope="row"><i>name</i>
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   131
     *     <td>Show in the frame or window named <i>name</i>. If a target named
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   132
     *     <i>name</i> does not already exist, a new top-level window with the
aa0344e6f39b 8184219: Fix accessibility of tables in the java.desktop module
serb
parents: 47216
diff changeset
   133
     *     specified name is created, and the document is shown there.
45648
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   134
     * </tbody>
87c997b74bb8 8180326: Update the tables in java.desktop to be HTML-5 friendly
serb
parents: 38470
diff changeset
   135
     * </table>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * <p>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   137
     * An applet viewer or browser is free to ignore {@code showDocument}.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   139
     * @param  url an absolute {@code URL} giving the location of the document
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   140
     * @param  target a {@code String} indicating where to display the page
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    public void showDocument(URL url, String target);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   145
     * Requests that the argument string be displayed in the "status window".
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   146
     * Many browsers and applet viewers provide such a window, where the
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   147
     * application can inform users of its current state.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   149
     * @param  status a string to display in the status window
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    void showStatus(String status);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   154
     * Associates the specified stream with the specified key in this applet
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   155
     * context. If the applet context previously contained a mapping for this
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   156
     * key, the old value is replaced.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * For security reasons, mapping of streams and keys exists for each
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   159
     * codebase. In other words, applet from one codebase cannot access the
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   160
     * streams created by an applet from a different codebase
24701
62c52173dc2d 8040081: Tidy warnings cleanup for java.applet
yan
parents: 21957
diff changeset
   161
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   162
     * @param  key key with which the specified value is to be associated
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   163
     * @param  stream stream to be associated with the specified key. If this
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   164
     *         parameter is {@code null}, the specified key is removed in this
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   165
     *         applet context.
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   166
     * @throws IOException if the stream size exceeds a certain size limit. Size
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   167
     *         limit is decided by the implementor of this interface.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     */
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   170
    public void setStream(String key, InputStream stream) throws IOException;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * Returns the stream to which specified key is associated within this
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   174
     * applet context. Returns {@code null} if the applet context contains no
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   175
     * stream for this key.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * For security reasons, mapping of streams and keys exists for each
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   178
     * codebase. In other words, applet from one codebase cannot access the
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   179
     * streams created by an applet from a different codebase.
24701
62c52173dc2d 8040081: Tidy warnings cleanup for java.applet
yan
parents: 21957
diff changeset
   180
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   181
     * @param  key key whose associated stream is to be returned
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * @return the stream to which this applet context maps the key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    public InputStream getStream(String key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * Finds all the keys of the streams in this applet context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * For security reasons, mapping of streams and keys exists for each
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   191
     * codebase. In other words, applet from one codebase cannot access the
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   192
     * streams created by an applet from a different codebase.
24701
62c52173dc2d 8040081: Tidy warnings cleanup for java.applet
yan
parents: 21957
diff changeset
   193
     *
52740
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   194
     * @return an {@code Iterator} of all the names of the streams in this
52ea97fb80b0 8211833: Javadoc cleanup of java.applet package
serb
parents: 50345
diff changeset
   195
     *         applet context
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    public Iterator<String> getStreamKeys();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
}