From 3faced7068a8401b57be8949e80ce4f4da4a0fb5 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Fri, 10 May 2024 00:32:34 +0100 Subject: Format all code, add editorconfig --- src/com/wilko/jaim/TocResponseFactory.java | 59 +++++++++++++----------------- 1 file changed, 26 insertions(+), 33 deletions(-) (limited to 'src/com/wilko/jaim/TocResponseFactory.java') diff --git a/src/com/wilko/jaim/TocResponseFactory.java b/src/com/wilko/jaim/TocResponseFactory.java index d7728b9..45b9444 100644 --- a/src/com/wilko/jaim/TocResponseFactory.java +++ b/src/com/wilko/jaim/TocResponseFactory.java @@ -1,4 +1,4 @@ -/* +/* * (C) 2002 Paul Wilkinson wilko@users.sourceforge.net * * This program is free software; you can redistribute it and/or modify @@ -26,8 +26,7 @@ package com.wilko.jaim; /** - * - * @author paulw + * @author paulw * @version $Revision: 1.5 $ */ @@ -36,47 +35,41 @@ import java.util.Vector; public abstract class TocResponseFactory { static Vector responseHandlers = new Vector(); - - /** Creates new TocResponseFactory */ + + /** + * Creates new TocResponseFactory + */ public TocResponseFactory() { } - public static void addResponseHandler(TocResponseHandler h) - { - synchronized (responseHandlers) - { + public static void addResponseHandler(TocResponseHandler h) { + synchronized (responseHandlers) { responseHandlers.add(h); } } - - static TocResponse createResponse(byte[] b) - { - TocResponse tr=null; - String strversion=new String(b); - int colonpos=strversion.indexOf(':'); - if (colonpos != -1) - { - String firstWord=strversion.substring(0,colonpos); - int i=0; - synchronized (responseHandlers) - { - while ((i