There is a API called isComplete() in https://github.com/amplab/tachyon/blob/master/src/main/java/tachyon/client/TachyonFile.java

Try to use that. If the file is complete and the length is 0, should just show nothing as content. Or if not complete, show "File XXX is not complete yet."