@Deprecated public class OutputUtils extends Object
| Constructor and Description |
|---|
OutputUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
getLong(String str)
Deprecated.
获取长整型值
|
static OutputUtils |
global()
Deprecated.
|
static void |
globalSet(OutputUtils instance)
Deprecated.
|
void |
outputFile(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.handle.DownloadedFile file,
boolean asAttachment)
Deprecated.
输出文件(主要是给动态输出用)
|
void |
outputFile(org.noear.solon.core.handle.Context ctx,
File file,
boolean asAttachment)
Deprecated.
输出文件(主要是给动态输出用)
|
void |
outputFile(org.noear.solon.core.handle.Context ctx,
URL file,
String conentType,
boolean useCaches)
Deprecated.
输出文件(主要是给静态文件用)
|
void |
outputStream(org.noear.solon.core.handle.Context ctx,
InputStream stream,
long streamSize,
String mime)
Deprecated.
输出流
|
void |
outputStreamAsGzip(org.noear.solon.core.handle.Context ctx,
InputStream stream)
Deprecated.
输出流,做为 gzip 输出
|
void |
outputStreamAsRange(org.noear.solon.core.handle.Context ctx,
InputStream stream,
long streamSize)
Deprecated.
输出流,做为 range 形式输出(如果支持)
|
public static OutputUtils global()
public static void globalSet(OutputUtils instance)
public void outputFile(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.handle.DownloadedFile file,
boolean asAttachment)
throws IOException
IOExceptionpublic void outputFile(org.noear.solon.core.handle.Context ctx,
File file,
boolean asAttachment)
throws IOException
IOExceptionpublic void outputFile(org.noear.solon.core.handle.Context ctx,
URL file,
String conentType,
boolean useCaches)
throws IOException
IOExceptionpublic void outputStream(org.noear.solon.core.handle.Context ctx,
InputStream stream,
long streamSize,
String mime)
throws IOException
IOExceptionpublic void outputStreamAsGzip(org.noear.solon.core.handle.Context ctx,
InputStream stream)
throws IOException
IOExceptionpublic void outputStreamAsRange(org.noear.solon.core.handle.Context ctx,
InputStream stream,
long streamSize)
throws IOException
IOExceptionprotected long getLong(String str)
Copyright © 2025. All rights reserved.