Merge 34afc2cd from gingerbread-plus-aosp

Change-Id: I2471571af1d8e34e7270cb6f765f16b4a474bb28
This commit is contained in:
Jean-Baptiste Queru
2011-01-29 08:45:29 -08:00
4 changed files with 11 additions and 4 deletions

View File

@@ -118820,6 +118820,8 @@
deprecated="not deprecated"
visibility="public"
>
<exception name="IOException" type="java.io.IOException">
</exception>
</method>
<method name="connect"
return="void"
@@ -119918,6 +119920,8 @@
deprecated="not deprecated"
visibility="public"
>
<implements name="java.io.Closeable">
</implements>
<method name="close"
return="void"
abstract="true"
@@ -119928,6 +119932,8 @@
deprecated="not deprecated"
visibility="public"
>
<exception name="IOException" type="java.io.IOException">
</exception>
</method>
<method name="connect"
return="void"

View File

@@ -117,7 +117,7 @@ import java.io.IOException;
}
@Override
public void close() {
public void close() throws IOException {
try {
/* Note that we don't want to physically disconnect the tag,
* but just reconnect to it to reset its state

View File

@@ -92,7 +92,7 @@ public final class IsoDep extends BasicTagTechnology {
}
@Override
public void close() {
public void close() throws IOException {
try {
mTag.getTagService().resetIsoDepTimeout();
} catch (RemoteException e) {

View File

@@ -18,9 +18,10 @@ package android.nfc.tech;
import android.nfc.Tag;
import java.io.Closeable;
import java.io.IOException;
public interface TagTechnology {
public interface TagTechnology extends Closeable {
/**
* This technology is an instance of {@link NfcA}.
* <p>Support for this technology type is mandatory.
@@ -135,5 +136,5 @@ public interface TagTechnology {
* @see #connect()
* @see #reconnect()
*/
public void close();
public void close() throws IOException;
}