Remove canBeFormatted().

It's not easy to determine if this
is possible, so instead apps should
attempt a format and handle errors
in the format request.

Change-Id: I078a208b849e71ef3fb6b5970a9111ece4a2d201
This commit is contained in:
Jeff Hamilton
2010-12-18 16:39:37 -06:00
parent e0bd2688eb
commit 3ce86481cb
2 changed files with 1 additions and 10 deletions

View File

@@ -140,6 +140,7 @@ public final class Ndef extends BasicTagTechnology {
return null;
}
}
/**
* Overwrite the primary NDEF message
* @throws IOException

View File

@@ -44,16 +44,6 @@ public final class NdefFormatable extends BasicTagTechnology {
super(adapter, tag, tech);
}
/**
* Returns whether a tag can be formatted with {@link
* NdefFormatable#format(NdefMessage)}
*/
public boolean canBeFormatted() throws IOException {
checkConnected();
throw new UnsupportedOperationException();
}
/**
* Formats a tag as NDEF, if possible. You may supply a first
* NdefMessage to be written on the tag.