List of usage examples for io.netty.handler.codec.http HttpConstants DEFAULT_CHARSET
Charset DEFAULT_CHARSET
To view the source code for io.netty.handler.codec.http HttpConstants DEFAULT_CHARSET.
Click Source Link
From source file:divconq.api.internal.UploadStream.java
License:Open Source License
@Override public String getString() throws IOException { return this.getString(HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.AbstractDiskHttpData.java
License:Apache License
@Override public String getString() throws IOException { return getString(HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.AbstractDiskHttpData.java
License:Apache License
@Override public String getString(Charset encoding) throws IOException { if (file == null) { return ""; }/*from ww w.java2 s. c o m*/ if (encoding == null) { byte[] array = readFrom(file); return new String(array, HttpConstants.DEFAULT_CHARSET.name()); } byte[] array = readFrom(file); return new String(array, encoding.name()); }
From source file:divconq.http.multipart.AbstractMemoryHttpData.java
License:Apache License
@Override public String getString() { return getString(HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.AbstractMemoryHttpData.java
License:Apache License
@Override public String getString(Charset encoding) { if (byteBuf == null) { return ""; }/* ww w . ja v a2 s.c o m*/ if (encoding == null) { encoding = HttpConstants.DEFAULT_CHARSET; } return byteBuf.toString(encoding); }
From source file:divconq.http.multipart.DiskAttribute.java
License:Apache License
/** * Constructor used for huge Attribute */ public DiskAttribute(String name) { this(name, HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.DiskAttribute.java
License:Apache License
public DiskAttribute(String name, String value) throws IOException { this(name, value, HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.HttpPostMultipartRequestDecoder.java
License:Apache License
/** * * @param request//from ww w .j a va2 s.co m * the request to decode * @throws NullPointerException * for request * @throws ErrorDataDecoderException * if the default charset was wrong when decoding or other * errors */ public HttpPostMultipartRequestDecoder(HttpRequest request) { this(new DefaultHttpDataFactory(DefaultHttpDataFactory.MINSIZE), request, HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.HttpPostMultipartRequestDecoder.java
License:Apache License
/** * * @param factory/*ww w . j a v a2s . c om*/ * the factory used to create InterfaceHttpData * @param request * the request to decode * @throws NullPointerException * for request or factory * @throws ErrorDataDecoderException * if the default charset was wrong when decoding or other * errors */ public HttpPostMultipartRequestDecoder(HttpDataFactory factory, HttpRequest request) { this(factory, request, HttpConstants.DEFAULT_CHARSET); }
From source file:divconq.http.multipart.HttpPostRequestDecoder.java
License:Apache License
/** * * @param request/* www .ja v a 2 s . co m*/ * the request to decode * @throws NullPointerException * for request * @throws ErrorDataDecoderException * if the default charset was wrong when decoding or other * errors */ public HttpPostRequestDecoder(HttpRequest request) { this(new DefaultHttpDataFactory(DefaultHttpDataFactory.MINSIZE), request, HttpConstants.DEFAULT_CHARSET); }