@Test public void testResumableFileCreationError() throws Exception { assertTrue( partFile.getAbsolutePath(), partFile.mkdirs() ); PartialFile partialFile = newPartialFile( 0, 100 ); assertNotNull( partialFile ); assertFalse( partialFile.isResume() ); assertFalse( lockFile.getAbsolutePath(), lockFile.exists() ); }
public boolean isResume() { return lockFile != null && partFile.length() >= threshold; }
PartialFile implements Closeable { public boolean isResume() { return lockFile != null && partFile.length() >= threshold; } }
PartialFile implements Closeable { public boolean isResume() { return lockFile != null && partFile.length() >= threshold; } private  PartialFile( File partFile, Logger logger ); private  PartialFile( File partFile, LockFile lockFile, long threshold, Logger logger ); }
PartialFile implements Closeable { public boolean isResume() { return lockFile != null && partFile.length() >= threshold; } private  PartialFile( File partFile, Logger logger ); private  PartialFile( File partFile, LockFile lockFile, long threshold, Logger logger ); File getFile(); boolean isResume(); void close(); @Override String toString(); }
PartialFile implements Closeable { public boolean isResume() { return lockFile != null && partFile.length() >= threshold; } private  PartialFile( File partFile, Logger logger ); private  PartialFile( File partFile, LockFile lockFile, long threshold, Logger logger ); File getFile(); boolean isResume(); void close(); @Override String toString();  }