users@jersey.java.net

Is returned InputStream closed?

From: Zach Cox <zcox522_at_gmail.com>
Date: Wed, 24 Sep 2008 16:56:17 -0400

If I have a method that returns an InputStream:

@GET
public InputStream getSomething()
{
    InputStream stream = ...;
    return stream;
}

Is that InputStream eventually closed by Jersey? If not, is there any
way I can explicitly close it after Jersey is done with it?

Thanks,
Zach