Examples of Directory


Examples of br.com.objectos.way.base.io.Directory

        .actionDescription("Fixing ownerships.");
  }

  @Override
  protected void execute0(BdoInstallOptions options) {
    Directory installVar = options.installVar(dirs);

    Chown.at(installVar)
        .file("etc").to("root.root").recursively()
        .file("var").to("root.root")
        .file("var/lib").to("root.root")
View Full Code Here

Examples of cli_fmw.delegate.directory.Directory

     * Создание начальной заготовки дерева
     * @return
     */
    private TreeNode makeTree() throws ClipsException {
        ArrayList<Directory> directoryList = new ArrayList<Directory>();
        Directory d = DirectoryLocator.getDirectory(DirectorySurnameAbstract.class, false);
        directoryList.add(d);

        d = DirectoryLocator.getDirectory(DirectoryNameAbstract.class, false);
        directoryList.add(d);
        d = DirectoryLocator.getDirectory(DirectoryPathronAbstract.class, false);
View Full Code Here

Examples of com.antimatterstudios.esftp.ui.widgets.Directory

        updateProgress("QUERYING....",-1,-1);
        m_userInterface.updateStore();
        m_transfer = Activator.getDefault().getTransfer(m_details);
        m_transfer.init(m_details);
        if(m_transfer.open()){
          m_root = new Directory("/");
          m_treeViewer.setInput(m_root);   
          m_root.expand(m_details.getSiteRoot(), m_treeViewer);
          updateProgress("COMPLETE!",0,0);
        }
      }
View Full Code Here

Examples of com.dotcms.repackage.org.apache.lucene.store.Directory

        IndexWriter writer = null;

                try {

                    Directory directory = FSDirectory.open( new File( luceneDir ) );
                    IndexWriterConfig config = new IndexWriterConfig( Version.LUCENE_CURRENT, new WhitespaceAnalyzer( Version.LUCENE_CURRENT ) );
                    /*
                    IndexWriterConfig.OpenMode.CREATE_OR_APPEND if used IndexWriter will create a new index if there is not
                    already an index at the provided path and otherwise open the existing index.
                     */
 
View Full Code Here

Examples of com.drew.metadata.Directory

  }
 
  protected static void showEXIF(File jpegFile) throws Exception{

    Metadata metadata = JpegMetadataReader.readMetadata(jpegFile);
    Directory exif = metadata.getDirectory(ExifDirectory.class);
    int orie = exif.getInt(ExifDirectory.TAG_ORIENTATION);
    if(orie!=1)
      System.out.println(jpegFile.getName()+":"+orie);
   
      Iterator tags = exif.getTagIterator();
      while (tags.hasNext()) {
          Tag tag = (Tag)tags.next();
          // use Tag.toString()
          System.out.println(tag);
      }
View Full Code Here

Examples of com.drew.metadata.Directory

    //Reading EXIF
    try {
      Metadata metadata = JpegMetadataReader.readMetadata(new File(img_path));
      if(!metadata.containsDirectory(ExifDirectory.class))
        return false;
      Directory exif = metadata.getDirectory(ExifDirectory.class);
      if(exif!=null){
        if(exif.containsTag(ExifDirectory.TAG_ORIENTATION))
          photo.setOrientation(exif.getInt(ExifDirectory.TAG_ORIENTATION));
        if(exif.containsTag(ExifDirectory.TAG_MAKE))
          photo.setManufacturer(exif.getString(ExifDirectory.TAG_MAKE));
        if(exif.containsTag(ExifDirectory.TAG_MODEL))
          photo.setModel(exif.getString(ExifDirectory.TAG_MODEL));
        if(exif.containsTag(ExifDirectory.TAG_APERTURE))
          photo.setAperture(exif.getDescription(ExifDirectory.TAG_APERTURE));
        if(exif.containsTag(ExifDirectory.TAG_COLOR_SPACE))
          photo.setColorSpace(exif.getDescription(ExifDirectory.TAG_COLOR_SPACE));
        if(exif.containsTag(ExifDirectory.TAG_EXPOSURE_BIAS))
          photo.setExposureBias(exif.getDescription(ExifDirectory.TAG_EXPOSURE_BIAS));
        if(exif.containsTag(ExifDirectory.TAG_FOCAL_LENGTH))
          photo.setFocalLength(exif.getDescription(ExifDirectory.TAG_FOCAL_LENGTH));
        if(exif.containsTag(ExifDirectory.TAG_ISO_EQUIVALENT))
          photo.setISO(exif.getInt(ExifDirectory.TAG_ISO_EQUIVALENT));
        if(exif.containsTag(ExifDirectory.TAG_SHUTTER_SPEED))
          photo.setShutter(exif.getDescription(ExifDirectory.TAG_SHUTTER_SPEED))
        if(exif.containsTag(ExifDirectory.TAG_EXPOSURE_TIME))
          photo.setExposureTime(exif.getDescription(ExifDirectory.TAG_EXPOSURE_TIME));
        return true;
      }
    } catch (Exception e) {
      log.error("Reading EXIF of "+img_path+" failed.", e);
    }
View Full Code Here

Examples of com.drew.metadata.Directory

            File jpegFile = new File(filename);
           
            try {
                Metadata metadata = JpegMetadataReader.readMetadata(jpegFile);
                if (metadata.containsDirectory(ExifDirectory.class)) {
                    Directory exifDirectory = metadata.getDirectory(ExifDirectory.class);
                   
                    try {
                        String camera = exifDirectory.getString(ExifDirectory.TAG_MODEL);
                        image.setValue(Image._Q_CAMERA, camera);
                    } catch (Exception me) {}

                    try {
                        int compression = exifDirectory.getInt(ExifDirectory.TAG_COMPRESSION);
                        image.setValue(Image._O_COMPRESSION, Long.valueOf(compression));
                    } catch (Exception me) {}


                    try {
                        String description = exifDirectory.getString(ExifDirectory.TAG_IMAGE_DESCRIPTION);
                        image.setValue(Image._B_DESCRIPTION, description);
                    } catch (Exception me) {}

                    try {
                        Date date = exifDirectory.getDate(ExifDirectory.TAG_DATETIME);
                        if (date != null) {
                            cal.setTime(date);
                            cal.set(Calendar.HOUR_OF_DAY, 0);
                            cal.set(Calendar.MINUTE, 0);
                            cal.set(Calendar.SECOND, 0);
                            image.setValue(Image._N_DATE, cal.getTime());
                        }
                    } catch (Exception me) {}
                }
               
                if (metadata.containsDirectory(IptcDirectory.class)) {
                    try {
                        Directory iptcDirectory = metadata.getDirectory(IptcDirectory.class);
                        String city = iptcDirectory.getString(IptcDirectory.TAG_CITY);
                        String country = iptcDirectory.getString(IptcDirectory.TAG_COUNTRY_OR_PRIMARY_LOCATION);
                        String state = iptcDirectory.getString(IptcDirectory.TAG_PROVINCE_OR_STATE);
                       
                        String location = "";
                        location += country != null ? country + ", " : "";
                        location += state != null ? state  + ", " : "";
                        location += city != null ? city : "";
View Full Code Here

Examples of com.drew.metadata.Directory

               
                @SuppressWarnings("unchecked")
                Iterator<Directory> directories = metadata.getDirectoryIterator();
                HashMap<String, String> props = new HashMap<String, String>();
                while (directories.hasNext()) {
                    Directory directory = directories.next();
                    @SuppressWarnings("unchecked")
                    Iterator<Tag> tags = directory.getTagIterator();
                    while (tags.hasNext()) {
                        Tag tag = tags.next();
                        try {
                            props.put(tag.getTagName(), tag.getDescription());
                            ii.info.append(tag.getTagName() + ": " + tag.getDescription() + " .\n");
View Full Code Here

Examples of com.edgytech.swingfast.Directory

    static Directory _xmlDir;
    static Directory _confDir;

    static Directory getXmlDir() {
        if (_xmlDir == null) {
            _xmlDir = new Directory("xml", "xml", true, File.values(), Common.Ext.xml);
        }
        return _xmlDir;
    }
View Full Code Here

Examples of com.github.hakko.musiccabinet.domain.model.library.Directory

  }

  @Test
  public void findsSubDirectories() throws ApplicationException {
    scannerService.add(set(media1));
    Directory dirMedia1 = getFirstRootDirectory();
   
    List<Directory> subMedia1 = list(dirMedia1.getId());
    Assert.assertEquals(2, subMedia1.size());
    Assert.assertEquals("Elvis Presley", subMedia1.get(0).getName());
    Assert.assertEquals("The Beatles", subMedia1.get(1).getName());
   
    List<Directory> subTheBeatles = list(subMedia1.get(1).getId());
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.