Example usage for java.lang UnsupportedOperationException UnsupportedOperationException

List of usage examples for java.lang UnsupportedOperationException UnsupportedOperationException

Introduction

In this page you can find the example usage for java.lang UnsupportedOperationException UnsupportedOperationException.

Prototype

public UnsupportedOperationException() 

Source Link

Document

Constructs an UnsupportedOperationException with no detail message.

Usage

From source file:net.egelke.chrome.eid.Main.java

public static void main(String[] args) throws Throwable {
    try {/*from   w w w  .ja  v a2s . c  o  m*/
        logger.debug("Start native eid process");
        bb.order(ByteOrder.nativeOrder());
        mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);

        Message input;
        do {
            input = nextMessage();
            Message output = new Message();
            output.setType(Message.Type.EID_OUTPUT);

            //TODO:others
            if (input.getAction() instanceof StartAction) {
                output.setAction(input.getAction());
            } else {
                throw new UnsupportedOperationException();
            }

            respond(output);
        } while (!(input.getAction() instanceof EndAction));

        logger.debug("End native eid process");
    } catch (Throwable e) {
        logger.error("Fatal error", e);
        throw e;
    }
}

From source file:com.google.gdocsfs.GoogleDocsFS.java

public static void main(String[] args) {
    ResourceBundle properties = ResourceBundle.getBundle("gdocsfs");

    String username = properties.getString("username");
    String password = properties.getString("password");
    if (password == null || password.trim().length() == 0) {
        //         char[] pass = System.console().readPassword("Google account password(%s): ", username);
        //         password = new String(pass);
        throw new UnsupportedOperationException();
    }/*from   w  w w  .java 2 s .c  o m*/

    String mountPoint = args[0];
    String[] fuseArgs = new String[] { "-f", "-s", "-ofsname=gdocsfs", "-ouse_ino", mountPoint };
    GoogleDocs googleDocs;
    try {
        googleDocs = new GoogleDocs(username, password);
        GoogleDocsFS gdocsfs = new GoogleDocsFS(googleDocs);
        FuseMount.mount(fuseArgs, gdocsfs, log);

    } catch (AuthenticationException e) {
        error(1, e, "Unable to connect. Ckeck your username and/or password.");

    } catch (ServiceException e) {
        error(2, e, "Ckeck your Internet connection: " + e.getMessage());

    } catch (IOException e) {
        error(3, e, "Ckeck your Internet connection: " + e.getMessage());

    } catch (Exception e) {
        error(4, e, "Unable to mount at " + mountPoint, "Error: " + e.getMessage());
    }
}

From source file:Main.java

public static Double getTime() {
    throw new UnsupportedOperationException();
}

From source file:Main.java

public static void solveLinear3x3(Double[] A, Double[] b) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

public static void rectifyAffineTransformationUpIsUp(Double[] U) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

public static void invSqrt(Double a, Double b, Double c, Double l1, Double l2) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

public static Boolean getEigenvalues(Double a, Double b, Double c, Double d, Double l1, Double l2) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

public static void rectifyAffineTransformationUpIsUp(Double a11, Double a12, Double a21, Double a22) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

/**
 * /* w  ww  . ja v  a  2  s .  c o m*/
 * @param context
 * @param msg
 * @param params
 */
public static void showToast(Context context, String msg, Object... params) {
    // TODO
    throw new UnsupportedOperationException();
}

From source file:EnumerationIterator1.java

public static Iterator iterator(final Enumeration e) {
    return new Iterator() {
        public boolean hasNext() {
            return e.hasMoreElements();
        }/*from  w w w  .  j  av  a  2s  . co  m*/

        public Object next() {
            return e.nextElement();
        }

        public void remove() {
            throw new UnsupportedOperationException();
        }
    };
}