Package org.entityfs

Examples of org.entityfs.EFile


    try
    {
      Iterator<EntityView> itr = new FilteringIterator<EntityView>((recurse ? Directories.getDepthLastIterator(d) : Directories.getIterator(d)), new EFileNameExtensionFilter("class"));
      while (itr.hasNext())
      {
        EFile f = (EFile) itr.next();
        res.add(new EFileJavaFileObjectAdapter(f, Kind.CLASS, baseDirLoc, Directories.getChildRelativeLocation(d, f)));
      }
    }
    finally
    {
View Full Code Here


  }

  @Override
  public ShadowCopyTransactionalDatabase<Integer, Long, Long> createDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    return createDatabaseUsingFile(dir, f);
  }
View Full Code Here

  }

  @Override
  protected TransactionalDatabase<Character, Character> createCharacterDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    return createCharacterDatabaseUsingFile(dir, f);
  }
View Full Code Here

  }

  @Override
  public ShadowCopyTransactionalDatabase<Integer, Long, KeyAndValue<Integer, Long>> createDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    return createDatabaseUsingFile(dir, f);
  }
View Full Code Here

  }

  @Override
  protected TransactionalDatabase<Character, Character> createCharacterDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    return createCharacterDatabaseUsingFile(dir, f);
  }
View Full Code Here

  }

  @Override
  public ShadowCopyTransactionalDatabase<String, String, Long> createDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    EFile indf = Directories.newFile(dir, "index");
    return createDatabaseUsingFile(dir, f, indf);
  }
View Full Code Here

  }

  @Override
  protected ShadowCopyTransactionalDatabase<String, String, Long> createDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    return createDatabaseUsingFile(dir, f);
  }
View Full Code Here

  }

  @Override
  public ShadowCopyTransactionalDatabase<Integer, Long, Long> createDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    EFile indf = Directories.newFile(dir, "index");
    return createDatabaseUsingFile(dir, f, indf);
  }
View Full Code Here

  }

  @Override
  protected TransactionalDatabase<Character, Character> createCharacterDatabaseWoTxnInDirectory(Directory dir)
  {
    EFile f = Directories.newFile(dir, "db");
    EFile indf = Directories.newFile(dir, "index");
    return createCharacterDatabaseUsingFile(dir, f, indf);
  }
View Full Code Here

   * @param tmpDir The directory where the new file should be created.
   * @return The copy.
   */
  protected EFile copyToTempFile(ReadWritableFile f, DirectoryView tmpDir)
  {
    EFile res = (EFile) tmpDir.newEntity(ETFile.TYPE, "sctxdb." + RANDOM.nextInt(Integer.MAX_VALUE), null);
    try
    {
      WritableByteChannel wbc = res.openChannelForWrite();
      try
      {
        ReadableByteChannel rbc = f.openChannelForRead();
        try
        {
View Full Code Here

TOP

Related Classes of org.entityfs.EFile

Copyright © 2018 www.massapicom. 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.