public void transceive() throws IOException {
		String received;

		br = new BufferedReader(new InputStreamReader(newSS.getInputStream()));
		received = br.readLine();

		String[] temp;
		PrintWriter pw = new PrintWriter(newSS.getOutputStream(), true);
		switch (received.charAt(0)) {
		case ('1'):
			pw.println(imdb.getAssociatedJournals(doctor, division));
			pw.flush();
			break;
		case ('2'):
			temp = received.split("!");
			pw.println(imdb.getJournal(temp[1], doctor, division));
			pw.flush();

			break;
		case ('3'):
			temp = received.split("!");
			pw.println(imdb.appendToText(doctor, temp[1], temp[2]));
			pw.flush();

			break;
		case ('4'):
			temp = received.split("!");
			String mess = imdb.addJournal(temp[1], doctor, temp[3], division,
					temp[2]);
			pw.println(mess);

			break;
		case ('5'):
			temp = received.split("!");
			pw.println(imdb.deleteJournal(temp[1], doctor));
			pw.flush();
			break;
		}

	}