public void syncFileContent(String fileName, FileOperation fileOperation) {
        byte operation = fileOperation.operation;
        long fileLastModifiedTime = fileOperation.file.lastModified();
        FileInputStream is = null;
        try {
            writeHasNextFileFlag(true);
            if(operation == DropboxConstants.ADD || operation == DropboxConstants.EDIT) {
                writeFileOperation(operation);
                writeFileName(fileName);
                writeFileLastModifiedTime(fileLastModifiedTime);
            }
            else { // DELETE
                writeFileOperation(operation);
                writeFileName(fileName);
            }
        }
        catch(Exception ex) {
            Logger.getLogger(DropboxClient.class.getName()).log(Level.SEVERE, null, ex);
        }
        finally {
        	try {
        		if(is != null)
				    is.close();
				}
        	catch (Exception ex) {
                Logger.getLogger(DropboxClient.class.getName()).log(Level.SEVERE, null, ex);
			}
        }
    }