This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DynamicFile { | |
private static final String DOWNLOAD_SUFFIX = ".download"; | |
private static final String ACCESS_MODE_RW = "rw"; | |
private static final String ACCESS_MODE_R = "r"; | |
private static final int READ_LOCK_TIME_MS = 50; | |
private static final int WAIT_FOR_BYTES_MS = 350; | |
private File mStableFile; | |
private File mTempFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COLOR_BLACK=0 | |
COLOR_RED=1 | |
COLOR_GREEN=2 | |
COLOR_YELLOW=3 | |
COLOR_GREY=8 | |
reset_color="$(tput sgr0)" |