X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fslipway%2FFakeBoard.java;fp=src%2Fedu%2Fberkeley%2Fslipway%2FFakeBoard.java;h=6e579b7090b54c29d7ec1e487fdbe88cbee54fce;hb=a639737cdb1c89b00c2fd2ee21ed9e0308afbf0f;hp=a9be38afc6d6c68a961742b6f4a0e89e8e93887c;hpb=fbe3858bf294051a2f12ff3a5192007ca7803c94;p=slipway.git diff --git a/src/edu/berkeley/slipway/FakeBoard.java b/src/edu/berkeley/slipway/FakeBoard.java index a9be38a..6e579b7 100644 --- a/src/edu/berkeley/slipway/FakeBoard.java +++ b/src/edu/berkeley/slipway/FakeBoard.java @@ -44,7 +44,7 @@ public class FakeBoard extends FpslicDevice implements Board { }; } - public InputStream getInputStream() throws IOException { + public InputStream getInputStream() { return new InputStream() { public int available() { return 0; } public int read() { return -1; } @@ -52,7 +52,7 @@ public class FakeBoard extends FpslicDevice implements Board { }; } - public OutputStream getOutputStream() throws IOException { + public OutputStream getOutputStream() { return new OutputStream() { public void flush() { } public void write(int b) { } @@ -60,9 +60,10 @@ public class FakeBoard extends FpslicDevice implements Board { }; } - public void selfTest(SelfTestResultListener resultListener) throws Exception { } + //public void selfTest(SelfTestResultListener resultListener) throws Exception { } public Device getDevice() { return this; } + public void boot(Reader r) throws Exception { } }