From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 usergrps/uktug/baskervi/6_4/java-io.tex | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 usergrps/uktug/baskervi/6_4/java-io.tex

(limited to 'usergrps/uktug/baskervi/6_4/java-io.tex')

diff --git a/usergrps/uktug/baskervi/6_4/java-io.tex b/usergrps/uktug/baskervi/6_4/java-io.tex
new file mode 100644
index 0000000000..d7296d73c9
--- /dev/null
+++ b/usergrps/uktug/baskervi/6_4/java-io.tex
@@ -0,0 +1,19 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% this figure relates to something a little later on; placed here to
+%%% force it to come atop the proper case
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{figure*}[htp]
+\begin{verbatim}
+    function signed_pair:integer; {returns the next two bytes, signed}
+    var a,@!b:eight_bits;
+    begin a:=0; b:=0; 
+    try begin a:=dvi_file.readByte; b:=dvi_file.readUnsignedByte; end;
+    catch (ex: IOException) EOF_dvi_file:=true;
+    if EOF_dvi_file then signed_pair:=0
+    else begin cur_loc:=cur_loc+2; signed_pair:=a*256+b; end;
+    end;
+\end{verbatim}
+\caption{Mapping of ordinary input from file in Java}
+\label{fig:exceptions-io}
+\end{figure*}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-- 
cgit v1.2.3

