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/FLAPInputFrame.java | 59 +++++++++++++++------------------- 1 file changed, 26 insertions(+), 33 deletions(-) (limited to 'src/com/wilko/jaim/FLAPInputFrame.java') diff --git a/src/com/wilko/jaim/FLAPInputFrame.java b/src/com/wilko/jaim/FLAPInputFrame.java index bdceb3c..c432f03 100644 --- a/src/com/wilko/jaim/FLAPInputFrame.java +++ b/src/com/wilko/jaim/FLAPInputFrame.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,51 +26,44 @@ package com.wilko.jaim; /** - * - * @author paulw + * @author paulw * @version $Revision: 1.3 $ */ public class FLAPInputFrame extends FLAPFrame { - /** Creates new FLAPInputFrame */ - private int frameLen; - + /** + * Creates new FLAPInputFrame + */ + private int frameLen; + public FLAPInputFrame() { - frameLen=0; + frameLen = 0; super.initialise(); } - - public void addFrameData(byte b) - { - frame[frameLen++]=b; + + public void addFrameData(byte b) { + frame[frameLen++] = b; } - public byte[] getFrameData() - { - byte[] b=new byte[frameLen]; - System.arraycopy(frame,0,b,0,frameLen); - return(b); + public byte[] getFrameData() { + byte[] b = new byte[frameLen]; + System.arraycopy(frame, 0, b, 0, frameLen); + return (b); } - - public void resetInputFrame() - { - frameLen=0; + + public void resetInputFrame() { + frameLen = 0; } - - public boolean completeFrameRead() - { - if (frameLen > 5) - { - if (frameLen-6 == getLength()) - { - return(true); - } + + public boolean completeFrameRead() { + if (frameLen > 5) { + return frameLen - 6 == getLength(); } - return(false); + return (false); } - + public int getFLAPFrameType() { - return(-1); + return (-1); } - + } -- cgit v1.2.3-54-g00ecf