mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
s/occured/occurred/
This commit is contained in:
parent
b0277d7e74
commit
eb4c2c5572
50 changed files with 196 additions and 196 deletions
|
@ -535,7 +535,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
*
|
||||
* @throws XMPPException if an error occurs on the XMPP protocol level.
|
||||
* @throws SmackException if an error occurs somewhere else besides XMPP protocol level.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @return a reference to this object, to chain <code>connect()</code> with <code>login()</code>.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
*/
|
||||
|
@ -575,7 +575,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
* login if the previous connection state was logged (authenticated).
|
||||
*
|
||||
* @throws SmackException if Smack detected an exceptional situation.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XMPPException if an XMPP protocol error was received.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
*/
|
||||
|
@ -628,7 +628,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
* @param password TODO javadoc me please
|
||||
* @throws XMPPException if an XMPP protocol error was received.
|
||||
* @throws SmackException if Smack detected an exceptional situation.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @see #login
|
||||
*/
|
||||
|
@ -646,7 +646,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
* @param resource TODO javadoc me please
|
||||
* @throws XMPPException if an XMPP protocol error was received.
|
||||
* @throws SmackException if Smack detected an exceptional situation.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @see #login
|
||||
*/
|
||||
|
@ -873,9 +873,9 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
* @return the used SASLMechanism.
|
||||
* @throws XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws SASLErrorException if a SASL protocol error was returned.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
* @throws SmackWrappedException in case of an exception.
|
||||
|
|
|
@ -175,9 +175,9 @@ public final class SASLAuthentication {
|
|||
* @return the used SASLMechanism.
|
||||
* @throws XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws SASLErrorException if a SASL protocol error was returned.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
*/
|
||||
|
@ -233,7 +233,7 @@ public final class SASLAuthentication {
|
|||
*
|
||||
* @param challenge a base64 encoded string representing the challenge.
|
||||
* @param finalChallenge true if this is the last challenge send by the server within the success stanza
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
*/
|
||||
|
@ -252,7 +252,7 @@ public final class SASLAuthentication {
|
|||
* @throws SmackException if Smack detected an exceptional situation.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
*/
|
||||
void authenticated(Success success) throws InterruptedException, SmackSaslException, NotConnectedException {
|
||||
// RFC6120 6.3.10 "At the end of the authentication exchange, the SASL server (the XMPP
|
||||
|
|
|
@ -76,7 +76,7 @@ public class Java7ZlibInputOutputStream extends XMPPInputOutputStream {
|
|||
* byte without blocking, 0 means that the system is known to block for more input.
|
||||
*
|
||||
* @return 0 if no data is available, 1 otherwise
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
@Override
|
||||
public int available() throws IOException {
|
||||
|
|
|
@ -39,7 +39,7 @@ public interface ParsingExceptionCallback {
|
|||
* Called when parsing a stanza caused an exception.
|
||||
*
|
||||
* @param stanzaData the raw stanza data that caused the exception
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
void handleUnparsableStanza(UnparseableStanza stanzaData) throws IOException;
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ public abstract class SASLMechanism implements Comparable<SASLMechanism> {
|
|||
* empty array here.
|
||||
*
|
||||
* @return the initial response or null
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
*/
|
||||
protected abstract byte[] getAuthenticationText() throws SmackSaslException;
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@ public abstract class ScramMechanism extends SASLMechanism {
|
|||
/**
|
||||
*
|
||||
* @return the Channel Binding data.
|
||||
* @throws SmackSaslException if a SASL specific error occured.
|
||||
* @throws SmackSaslException if a SASL specific error occurred.
|
||||
*/
|
||||
protected byte[] getChannelBindingData() throws SmackSaslException {
|
||||
return null;
|
||||
|
|
|
@ -110,7 +110,7 @@ public final class FileUtils {
|
|||
*
|
||||
* @param file TODO javadoc me please
|
||||
* @return the content of file or null in case of an error
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
@SuppressWarnings("DefaultCharset")
|
||||
public static String readFileOrThrow(File file) throws IOException {
|
||||
|
|
|
@ -106,9 +106,9 @@ public class PacketParserUtils {
|
|||
* @param parser TODO javadoc me please
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return a stanza which is either a Message, IQ or Presence.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
public static Stanza parseStanza(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, SmackParsingException, IOException {
|
||||
ParserUtils.assertAtStartTag(parser);
|
||||
|
@ -156,8 +156,8 @@ public class PacketParserUtils {
|
|||
* @param parser the XML parser, positioned at the start of a message packet.
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return a Message packet.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static Message parseMessage(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
|
@ -238,8 +238,8 @@ public class PacketParserUtils {
|
|||
*
|
||||
* @param parser TODO javadoc me please
|
||||
* @return the textual content of the element as String
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
public static String parseElementText(XmlPullParser parser) throws XmlPullParserException, IOException {
|
||||
assert parser.getEventType() == XmlPullParser.Event.START_ELEMENT;
|
||||
|
@ -277,8 +277,8 @@ public class PacketParserUtils {
|
|||
*
|
||||
* @param parser the XML pull parser
|
||||
* @return the element as string
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
public static CharSequence parseElement(XmlPullParser parser) throws XmlPullParserException, IOException {
|
||||
return parseElement(parser, false);
|
||||
|
@ -316,8 +316,8 @@ public class PacketParserUtils {
|
|||
* @param depth TODO javadoc me please
|
||||
* @param fullNamespaces TODO javadoc me please
|
||||
* @return the content of the current depth
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
public static CharSequence parseContentDepth(XmlPullParser parser, int depth, boolean fullNamespaces) throws XmlPullParserException, IOException {
|
||||
if (parser.supportsRoundtrip()) {
|
||||
|
@ -442,8 +442,8 @@ public class PacketParserUtils {
|
|||
* @param parser the XML parser, positioned at the start of a presence packet.
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return a Presence packet.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static Presence parsePresence(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
|
@ -530,9 +530,9 @@ public class PacketParserUtils {
|
|||
* @param parser the XML parser, positioned at the start of an IQ packet.
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return an IQ object.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws XmppStringprepException if the provided string is invalid.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static IQ parseIQ(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, XmppStringprepException, IOException, SmackParsingException {
|
||||
|
@ -622,8 +622,8 @@ public class PacketParserUtils {
|
|||
*
|
||||
* @param parser the XML parser, positioned at the start of the mechanisms stanza.
|
||||
* @return a collection of Stings with the mechanisms included in the mechanisms stanza.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
*/
|
||||
public static Collection<String> parseMechanisms(XmlPullParser parser)
|
||||
throws XmlPullParserException, IOException {
|
||||
|
@ -652,7 +652,7 @@ public class PacketParserUtils {
|
|||
*
|
||||
* @param parser the XML parser, positioned at the start of the compression stanza.
|
||||
* @return The CompressionFeature stream element
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XmlPullParserException if an exception occurs while parsing the stanza.
|
||||
*/
|
||||
public static Compress.Feature parseCompressionFeature(XmlPullParser parser)
|
||||
|
@ -719,8 +719,8 @@ public class PacketParserUtils {
|
|||
* @param parser the XML parser.
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return an stream error packet.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static StreamError parseStreamError(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
|
@ -781,8 +781,8 @@ public class PacketParserUtils {
|
|||
* @param parser the XML parser.
|
||||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
* @return an error sub-packet.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static StanzaError parseError(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException {
|
||||
|
@ -845,8 +845,8 @@ public class PacketParserUtils {
|
|||
* @param outerXmlEnvironment the outer XML environment (optional).
|
||||
*
|
||||
* @return an extension element.
|
||||
* @throws XmlPullParserException if an error in the XML parser occured.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws XmlPullParserException if an error in the XML parser occurred.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
* @throws SmackParsingException if the Smack parser (provider) encountered invalid input.
|
||||
*/
|
||||
public static ExtensionElement parseExtensionElement(String elementName, String namespace,
|
||||
|
|
|
@ -628,7 +628,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
|
|||
*
|
||||
* @param writer TODO javadoc me please
|
||||
* @param enclosingXmlEnvironment the enclosing XML environment.
|
||||
* @throws IOException if an I/O error occured.
|
||||
* @throws IOException if an I/O error occurred.
|
||||
*/
|
||||
public void write(Writer writer, XmlEnvironment enclosingXmlEnvironment) throws IOException {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue