dos.flush(); dos.close();
    private void writeState(DataOutputStream dos) throws IOException {        // Write the repositories        dos.writeInt(REPOSITORIES_STATE_FILE_VERSION_1);        // Write out the repos        Collection repos = repositories.values();        dos.writeInt(repos.size());        Iterator it = repos.iterator();        while (it.hasNext()) {            SVNRepositoryLocation root = (SVNRepositoryLocation)it.next();            dos.writeUTF(root.getLocation());        }    }