Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2012 Stephen M. Hopper Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package com.enragedginger.stephenerialization.streamer;
 
 
Simple DestephenerializationStream wrapper. Wraps an java.io.ObjectInputStream instance.

Author(s):
Stephen Hopper
 
 public class SimpleDestephenerializationStream implements
 	
 	private static final String BASIC_MSG = "An error occurred during destephenerialization.";
 	
Creates a new SimpleDestephenerializationStream.

Parameters:
stream The stream to wrap.
 
 		this. = stream;
 	}

 
 	public byte readByte() {
 		try {
 			return .readByte();
 		} catch (Exception e) {
 		}
 	}

 
 	public short readShort() {
 		try {
 			return .readShort();
 		} catch (Exception e) {
 		}
 	}

 
 	public int readInt() {
 		try {
 			return .readInt();
 		} catch (Exception e) {
 		}
 	}

 
 	public long readLong() {
 		try {
 			return .readLong();
 		} catch (Exception e) {
 		}
 	}

 
 	public float readFloat() {
 		try {
 			return .readFloat();
 		} catch (Exception e) {
 		}
 	}

	public double readDouble() {
		try {
			return .readDouble();
catch (Exception e) {
		}
	}

	public boolean readBoolean() {
		try {
catch (Exception e) {
		}
	}

	public char readChar() {
		try {
			return .readChar();
catch (Exception e) {
		}
	}

	public Object readObject() {
		try {
			return .readObject();
catch (Exception e) {
		}
	}
New to GrepCode? Check out our FAQ X