/*
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * $Id: StringStreamingOutput.java 69447 2013-01-10 12:49:03Z supol $  
 */

package com.sun.ts.tests.jaxrs.common.impl;

import java.io.IOException;
import java.io.OutputStream;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.StreamingOutput;

public class StringStreamingOutput implements StreamingOutput {

	private String value;

	public StringStreamingOutput(String value) {
		this.value = value;
	}

	@Override
	public void write(OutputStream output) throws IOException,
			WebApplicationException {
		output.write(value.getBytes());
	}

}
