KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > rmi > readers > IntReader


1 package com.daffodilwoods.rmi.readers;
2
3 import java.io.ObjectInput JavaDoc;
4 import java.io.IOException JavaDoc;
5
6
7 public class IntReader implements _ObjectReader {
8   public static _ObjectReader objectReader = new IntReader();
9   private IntReader() {
10   }
11   public Object JavaDoc read(ObjectInput JavaDoc in) throws IOException JavaDoc,ClassNotFoundException JavaDoc {
12         return new Integer JavaDoc(in.readInt());
13   }
14
15 }
16
Popular Tags