Package javax.microedition.io.file

Examples of javax.microedition.io.file.FileConnection.mkdir()


  private static void createFolder(String path) throws Exception
  {
    FileConnection fc = (FileConnection) Connector.open(path, Connector.READ_WRITE);
   
    if (!fc.exists()) {
      fc.mkdir();
      fc.setWritable(true);
    }
   
    fc.close();
  }
View Full Code Here


        }
        String url = ("file:///" + options.rootName + dir);
        try {
            FileConnection conn = (FileConnection) Connector.open(url, Connector.READ_WRITE);
            if (!conn.exists()) {
                conn.mkdir();
            } else if (!conn.isDirectory()) {
                CloudGps.setError(url + " exists but is not a directory. Saving tiles will fail.");
            }
        } catch (IOException e) {
            CloudGps.setError(e);
View Full Code Here

    void createFile(String newName, boolean isDirectory) {
        try {
            FileConnection fc = (FileConnection) Connector.open("file://localhost/"
                    + currDirName + newName);
            if (isDirectory) {
                fc.mkdir();
            } else {
                fc.create();
            }
            fc.close();
            showCurrDir();
View Full Code Here

    void createFile(String newName, boolean isDirectory) {
        try {
            FileConnection fc = (FileConnection) Connector.open("file://localhost/"
                    + currDirName + newName);
            if (isDirectory) {
                fc.mkdir();
            } else {
                fc.create();
            }
            fc.close();
            showCurrDir();
View Full Code Here

    void createFile(String newName, boolean isDirectory) {
        try {
            FileConnection fc = (FileConnection) Connector.open("file://localhost/"
                    + currDirName + newName);
            if (isDirectory) {
                fc.mkdir();
            } else {
                fc.create();
            }
            fc.close();
            showCurrDir();
View Full Code Here

     * {@inheritDoc}
     */
    public void create( final String name ) throws IOException
    {
        final FileConnection connection = (FileConnection)Connector.open( PREFIX + path_ + name, Connector.WRITE );
        connection.mkdir();
        connection.close();
    }

    /**
     * {@inheritDoc}
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.