diff options
author | Frankie B <git@diskfloppy.me> | 2024-05-10 00:32:34 +0100 |
---|---|---|
committer | Frankie B <git@diskfloppy.me> | 2024-05-10 00:32:34 +0100 |
commit | 3faced7068a8401b57be8949e80ce4f4da4a0fb5 (patch) | |
tree | 32e76b06780fe6c14ddb4917d3ad0b222fa9c596 /src/com/wilko/jaim/FLAPInputFrame.java | |
parent | a1dff2cb8d33b17bc5981f1638cd50266713e98f (diff) |
Format all code, add editorconfig
Diffstat (limited to 'src/com/wilko/jaim/FLAPInputFrame.java')
-rw-r--r-- | src/com/wilko/jaim/FLAPInputFrame.java | 59 |
1 files changed, 26 insertions, 33 deletions
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); } - + } |