blob: a3bb7ca1e32d3cbd0acd3632dbb04872fd586b34 [file] [log] [blame]
// Copyright 2006 The Apache Software Foundation
//
// 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 org.apache.tapestry5.internal.util;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.zip.GZIPInputStream;
/**
* A convienience for building a {@link ObjectInputStream} around a Base64 encoding (that originated in {@link
* Base64ObjectOutputStream}).
*/
public class Base64ObjectInputStream extends ObjectInputStream
{
public Base64ObjectInputStream(String base64) throws IOException
{
super(new BufferedInputStream(new GZIPInputStream(new Base64InputStream(base64))));
}
}