1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package com
.nttdocomo
.ui
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
13 import com
.nttdocomo
.io
.ConnectionException
;
15 public interface MediaResource
18 * Disposes of the resource so that it no longer can be used.
20 * @throws UIException If the resource has already been disposed.
28 * Specifies that the media should stop being used and frees up
29 * resources for it. Note that the actual resource in its original
31 * is retained for the next {@link #use()} of which this becomes
34 * @throws UIException If the resource could not be freed.
42 * Specifies that the resource is to be used now, it will be loaded from
43 * the backing resource and will hold a representation of the data. This
44 * in a sense opens the data.
46 * @throws ConnectionException If the connection could not be made.
47 * @throws SecurityException If the operation is not supported due to
48 * a security mechanism.
49 * @throws UIException If the resource could not be opened.
54 throws ConnectionException
, SecurityException
, UIException
;