Add stubs

This commit is contained in:
Tony Torralba
2023-03-09 18:42:50 +01:00
committed by Stephan Brandauer
parent 698dfa46fc
commit eef3dc81df
12 changed files with 355 additions and 610 deletions

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.commons.compress.archivers.ArchiveEntry for testing purposes
package org.apache.commons.compress.archivers;
import java.util.Date;
public interface ArchiveEntry
{
Date getLastModifiedDate();
String getName();
boolean isDirectory();
long getSize();
static long SIZE_UNKNOWN = 0;
}

View File

@@ -0,0 +1,92 @@
// Generated automatically from org.apache.commons.compress.archivers.tar.TarArchiveEntry for testing purposes
package org.apache.commons.compress.archivers.tar;
import java.io.File;
import java.util.Date;
import java.util.Map;
import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarConstants;
import org.apache.commons.compress.archivers.zip.ZipEncoding;
public class TarArchiveEntry implements ArchiveEntry, TarConstants
{
protected TarArchiveEntry() {}
public Date getLastModifiedDate(){ return null; }
public Date getModTime(){ return null; }
public File getFile(){ return null; }
public Map<String, String> getExtraPaxHeaders(){ return null; }
public String getExtraPaxHeader(String p0){ return null; }
public String getGroupName(){ return null; }
public String getLinkName(){ return null; }
public String getName(){ return null; }
public String getUserName(){ return null; }
public TarArchiveEntry(File p0){}
public TarArchiveEntry(File p0, String p1){}
public TarArchiveEntry(String p0){}
public TarArchiveEntry(String p0, boolean p1){}
public TarArchiveEntry(String p0, byte p1){}
public TarArchiveEntry(String p0, byte p1, boolean p2){}
public TarArchiveEntry(byte[] p0){}
public TarArchiveEntry(byte[] p0, ZipEncoding p1){}
public TarArchiveEntry(byte[] p0, ZipEncoding p1, boolean p2){}
public TarArchiveEntry[] getDirectoryEntries(){ return null; }
public boolean equals(Object p0){ return false; }
public boolean equals(TarArchiveEntry p0){ return false; }
public boolean isBlockDevice(){ return false; }
public boolean isCharacterDevice(){ return false; }
public boolean isCheckSumOK(){ return false; }
public boolean isDescendent(TarArchiveEntry p0){ return false; }
public boolean isDirectory(){ return false; }
public boolean isExtended(){ return false; }
public boolean isFIFO(){ return false; }
public boolean isFile(){ return false; }
public boolean isGNULongLinkEntry(){ return false; }
public boolean isGNULongNameEntry(){ return false; }
public boolean isGNUSparse(){ return false; }
public boolean isGlobalPaxHeader(){ return false; }
public boolean isLink(){ return false; }
public boolean isOldGNUSparse(){ return false; }
public boolean isPaxGNUSparse(){ return false; }
public boolean isPaxHeader(){ return false; }
public boolean isSparse(){ return false; }
public boolean isStarSparse(){ return false; }
public boolean isSymbolicLink(){ return false; }
public int getDevMajor(){ return 0; }
public int getDevMinor(){ return 0; }
public int getGroupId(){ return 0; }
public int getMode(){ return 0; }
public int getUserId(){ return 0; }
public int hashCode(){ return 0; }
public long getLongGroupId(){ return 0; }
public long getLongUserId(){ return 0; }
public long getRealSize(){ return 0; }
public long getSize(){ return 0; }
public static int DEFAULT_DIR_MODE = 0;
public static int DEFAULT_FILE_MODE = 0;
public static int MAX_NAMELEN = 0;
public static int MILLIS_PER_SECOND = 0;
public static long UNKNOWN = 0;
public void addPaxHeader(String p0, String p1){}
public void clearExtraPaxHeaders(){}
public void parseTarHeader(byte[] p0){}
public void parseTarHeader(byte[] p0, ZipEncoding p1){}
public void setDevMajor(int p0){}
public void setDevMinor(int p0){}
public void setGroupId(int p0){}
public void setGroupId(long p0){}
public void setGroupName(String p0){}
public void setIds(int p0, int p1){}
public void setLinkName(String p0){}
public void setModTime(Date p0){}
public void setModTime(long p0){}
public void setMode(int p0){}
public void setName(String p0){}
public void setNames(String p0, String p1){}
public void setSize(long p0){}
public void setUserId(int p0){}
public void setUserId(long p0){}
public void setUserName(String p0){}
public void writeEntryHeader(byte[] p0){}
public void writeEntryHeader(byte[] p0, ZipEncoding p1, boolean p2){}
}

View File

@@ -0,0 +1,70 @@
// Generated automatically from org.apache.commons.compress.archivers.tar.TarConstants for testing purposes
package org.apache.commons.compress.archivers.tar;
public interface TarConstants
{
static String GNU_LONGLINK = null;
static String MAGIC_ANT = null;
static String MAGIC_GNU = null;
static String MAGIC_POSIX = null;
static String MAGIC_XSTAR = null;
static String VERSION_ANT = null;
static String VERSION_GNU_SPACE = null;
static String VERSION_GNU_ZERO = null;
static String VERSION_POSIX = null;
static byte LF_BLK = 0;
static byte LF_CHR = 0;
static byte LF_CONTIG = 0;
static byte LF_DIR = 0;
static byte LF_FIFO = 0;
static byte LF_GNUTYPE_LONGLINK = 0;
static byte LF_GNUTYPE_LONGNAME = 0;
static byte LF_GNUTYPE_SPARSE = 0;
static byte LF_LINK = 0;
static byte LF_NORMAL = 0;
static byte LF_OLDNORM = 0;
static byte LF_PAX_EXTENDED_HEADER_LC = 0;
static byte LF_PAX_EXTENDED_HEADER_UC = 0;
static byte LF_PAX_GLOBAL_EXTENDED_HEADER = 0;
static byte LF_SYMLINK = 0;
static int ATIMELEN_GNU = 0;
static int ATIMELEN_XSTAR = 0;
static int CHKSUMLEN = 0;
static int CHKSUM_OFFSET = 0;
static int CTIMELEN_GNU = 0;
static int CTIMELEN_XSTAR = 0;
static int DEFAULT_BLKSIZE = 0;
static int DEFAULT_RCDSIZE = 0;
static int DEVLEN = 0;
static int FORMAT_OLDGNU = 0;
static int FORMAT_POSIX = 0;
static int FORMAT_XSTAR = 0;
static int GIDLEN = 0;
static int GNAMELEN = 0;
static int ISEXTENDEDLEN_GNU = 0;
static int ISEXTENDEDLEN_GNU_SPARSE = 0;
static int LONGNAMESLEN_GNU = 0;
static int MAGICLEN = 0;
static int MAGIC_OFFSET = 0;
static int MODELEN = 0;
static int MODTIMELEN = 0;
static int NAMELEN = 0;
static int OFFSETLEN_GNU = 0;
static int PAD2LEN_GNU = 0;
static int PREFIXLEN = 0;
static int PREFIXLEN_XSTAR = 0;
static int REALSIZELEN_GNU = 0;
static int SIZELEN = 0;
static int SPARSELEN_GNU = 0;
static int SPARSELEN_GNU_SPARSE = 0;
static int UIDLEN = 0;
static int UNAMELEN = 0;
static int VERSIONLEN = 0;
static int VERSION_OFFSET = 0;
static int XSTAR_MAGIC_LEN = 0;
static int XSTAR_MAGIC_OFFSET = 0;
static long MAXID = 0;
static long MAXSIZE = 0;
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.commons.compress.archivers.zip.ZipEncoding for testing purposes
package org.apache.commons.compress.archivers.zip;
import java.nio.ByteBuffer;
public interface ZipEncoding
{
ByteBuffer encode(String p0);
String decode(byte[] p0);
boolean canEncode(String p0);
}

View File

@@ -1,53 +1,11 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.Header for testing purposes
package org.apache.http;
/**
* Represents an HTTP header field.
*
* <p>The HTTP header fields follow the same generic format as
* that given in Section 3.1 of RFC 822. Each header field consists
* of a name followed by a colon (":") and the field value. Field names
* are case-insensitive. The field value MAY be preceded by any amount
* of LWS, though a single SP is preferred.
*
*<pre>
* message-header = field-name ":" [ field-value ]
* field-name = token
* field-value = *( field-content | LWS )
* field-content = &lt;the OCTETs making up the field-value
* and consisting of either *TEXT or combinations
* of token, separators, and quoted-string&gt;
*</pre>
*
* @since 4.0
*/
public interface Header extends NameValuePair {
HeaderElement[] getElements() throws ParseException;
import org.apache.http.HeaderElement;
import org.apache.http.NameValuePair;
public interface Header extends NameValuePair
{
HeaderElement[] getElements();
}

View File

@@ -1,65 +1,15 @@
/*
* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HeaderElement.java $
* $Revision: 569828 $
* $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug 2007) $
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.HeaderElement for testing purposes
package org.apache.http;
/**
* One element of an HTTP {@link Header header} value.
*
* @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
*
*
* <!-- empty lines above to avoid 'svn diff' context problems -->
* @version $Revision: 569828 $ $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug
* 2007) $
*
* @since 4.0
*
* @deprecated Please use {@link java.net.URL#openConnection} instead. Please
* visit <a href=
* "http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this
* webpage</a> for further details.
*/
@Deprecated
public interface HeaderElement {
String getName();
String getValue();
import org.apache.http.NameValuePair;
public interface HeaderElement
{
NameValuePair getParameter(int p0);
NameValuePair getParameterByName(String p0);
NameValuePair[] getParameters();
NameValuePair getParameterByName(String name);
String getName();
String getValue();
int getParameterCount();
NameValuePair getParameter(int index);
}

View File

@@ -1,186 +1,20 @@
/*
* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpEntity.java $
* $Revision: 645824 $
* $Date: 2008-04-08 03:12:41 -0700 (Tue, 08 Apr 2008) $
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.HttpEntity for testing purposes
package org.apache.http;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.http.Header;
/**
* An entity that can be sent or received with an HTTP message. Entities can be
* found in some {@link HttpEntityEnclosingRequest requests} and in
* {@link HttpResponse responses}, where they are optional.
* <p>
* In some places, the JavaDoc distinguishes three kinds of entities, depending
* on where their {@link #getContent content} originates:
* <ul>
* <li><b>streamed</b>: The content is received from a stream, or generated on
* the fly. In particular, this category includes entities being received from a
* {@link HttpConnection connection}. {@link #isStreaming Streamed} entities are
* generally not {@link #isRepeatable repeatable}.</li>
* <li><b>self-contained</b>: The content is in memory or obtained by means that
* are independent from a connection or other entity. Self-contained entities
* are generally {@link #isRepeatable repeatable}.</li>
* <li><b>wrapping</b>: The content is obtained from another entity.</li>
* </ul>
* This distinction is important for connection management with incoming
* entities. For entities that are created by an application and only sent using
* the HTTP components framework, the difference between streamed and
* self-contained is of little importance. In that case, it is suggested to
* consider non-repeatable entities as streamed, and those that are repeatable
* (without a huge effort) as self-contained.
*
* @author <a href="mailto:oleg at ural.ru">Oleg Kalnichevski</a>
*
* @version $Revision: 645824 $
*
* @since 4.0
*
* @deprecated Please use {@link java.net.URL#openConnection} instead. Please
* visit <a href=
* "http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this
* webpage</a> for further details.
*/
@Deprecated
public interface HttpEntity {
/**
* Tells if the entity is capable to produce its data more than once. A
* repeatable entity's getContent() and writeTo(OutputStream) methods can be
* called more than once whereas a non-repeatable entity's can not.
*
* @return true if the entity is repeatable, false otherwise.
*/
boolean isRepeatable();
/**
* Tells about chunked encoding for this entity. The primary purpose of this
* method is to indicate whether chunked encoding should be used when the entity
* is sent. For entities that are received, it can also indicate whether the
* entity was received with chunked encoding. <br/>
* The behavior of wrapping entities is implementation dependent, but should
* respect the primary purpose.
*
* @return <code>true</code> if chunked encoding is preferred for this entity,
* or <code>false</code> if it is not
*/
boolean isChunked();
/**
* Tells the length of the content, if known.
*
* @return the number of bytes of the content, or a negative number if unknown.
* If the content length is known but exceeds
* {@link java.lang.Long#MAX_VALUE Long.MAX_VALUE}, a negative number is
* returned.
*/
long getContentLength();
/**
* Obtains the Content-Type header, if known. This is the header that should be
* used when sending the entity, or the one that was received with the entity.
* It can include a charset attribute.
*
* @return the Content-Type header for this entity, or <code>null</code> if the
* content type is unknown
*/
Header getContentType();
/**
* Obtains the Content-Encoding header, if known. This is the header that should
* be used when sending the entity, or the one that was received with the
* entity. Wrapping entities that modify the content encoding should adjust this
* header accordingly.
*
* @return the Content-Encoding header for this entity, or <code>null</code> if
* the content encoding is unknown
*/
public interface HttpEntity
{
Header getContentEncoding();
/**
* Creates a new InputStream object of the entity. It is a programming error to
* return the same InputStream object more than once. Entities that are not
* {@link #isRepeatable repeatable} will throw an exception if this method is
* called multiple times.
*
* @return a new input stream that returns the entity data.
*
* @throws IOException if the stream could not be created
* @throws IllegalStateException if this entity is not repeatable and the stream
* has already been obtained previously
*/
InputStream getContent() throws IOException, IllegalStateException;
/**
* Writes the entity content to the output stream.
*
* @param outstream the output stream to write entity content to
*
* @throws IOException if an I/O error occurs
*/
void writeTo(OutputStream outstream) throws IOException;
/**
* Tells whether this entity depends on an underlying stream. Streamed entities
* should return <code>true</code> until the content has been consumed,
* <code>false</code> afterwards. Self-contained entities should return
* <code>false</code>. Wrapping entities should delegate this call to the
* wrapped entity. <br/>
* The content of a streamed entity is consumed when the stream returned by
* {@link #getContent getContent} has been read to EOF, or after
* {@link #consumeContent consumeContent} has been called. If a streamed entity
* can not detect whether the stream has been read to EOF, it should return
* <code>true</code> until {@link #consumeContent consumeContent} is called.
*
* @return <code>true</code> if the entity content is streamed and not yet
* consumed, <code>false</code> otherwise
*/
boolean isStreaming(); // don't expect an exception here
/**
* TODO: The name of this method is misnomer. It will be renamed to #finish() in
* the next major release. <br/>
* This method is called to indicate that the content of this entity is no
* longer required. All entity implementations are expected to release all
* allocated resources as a result of this method invocation. Content streaming
* entities are also expected to dispose of the remaining content, if any.
* Wrapping entities should delegate this call to the wrapped entity. <br/>
* This method is of particular importance for entities being received from a
* {@link HttpConnection connection}. The entity needs to be consumed completely
* in order to re-use the connection with keep-alive.
*
* @throws IOException if an I/O error occurs. This indicates that connection
* keep-alive is not possible.
*/
void consumeContent() throws IOException;
} // interface HttpEntity
Header getContentType();
InputStream getContent();
boolean isChunked();
boolean isRepeatable();
boolean isStreaming();
long getContentLength();
void consumeContent();
void writeTo(OutputStream p0);
}

View File

@@ -1,124 +1,10 @@
/*
* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/NameValuePair.java $
* $Revision: 496070 $
* $Date: 2007-01-14 04:18:34 -0800 (Sun, 14 Jan 2007) $
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.NameValuePair for testing purposes
package org.apache.http;
/**
* A simple class encapsulating an attribute/value pair.
* <p>
* This class comforms to the generic grammar and formatting rules outlined in
* the <a href=
* "http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2">Section
* 2.2</a> and <a href=
* "http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6">Section
* 3.6</a> of <a href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">RFC
* 2616</a>
* </p>
* <h>2.2 Basic Rules</h>
* <p>
* The following rules are used throughout this specification to describe basic
* parsing constructs. The US-ASCII coded character set is defined by ANSI
* X3.4-1986.
* </p>
*
* <pre>
* OCTET = <any 8-bit sequence of data>
* CHAR = <any US-ASCII character (octets 0 - 127)>
* UPALPHA = <any US-ASCII uppercase letter "A".."Z">
* LOALPHA = <any US-ASCII lowercase letter "a".."z">
* ALPHA = UPALPHA | LOALPHA
* DIGIT = <any US-ASCII digit "0".."9">
* CTL = <any US-ASCII control character
* (octets 0 - 31) and DEL (127)>
* CR = <US-ASCII CR, carriage return (13)>
* LF = <US-ASCII LF, linefeed (10)>
* SP = <US-ASCII SP, space (32)>
* HT = <US-ASCII HT, horizontal-tab (9)>
* <"> = <US-ASCII double-quote mark (34)>
* </pre>
* <p>
* Many HTTP/1.1 header field values consist of words separated by LWS or
* special characters. These special characters MUST be in a quoted string to be
* used within a parameter value (as defined in section 3.6).
* <p>
*
* <pre>
* token = 1*<any CHAR except CTLs or separators>
* separators = "(" | ")" | "<" | ">" | "@"
* | "," | ";" | ":" | "\" | <">
* | "/" | "[" | "]" | "?" | "="
* | "{" | "}" | SP | HT
* </pre>
* <p>
* A string of text is parsed as a single word if it is quoted using
* double-quote marks.
* </p>
*
* <pre>
* quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
* qdtext = <any TEXT except <">>
* </pre>
* <p>
* The backslash character ("\") MAY be used as a single-character quoting
* mechanism only within quoted-string and comment constructs.
* </p>
*
* <pre>
* quoted-pair = "\" CHAR
* </pre>
*
* <h>3.6 Transfer Codings</h>
* <p>
* Parameters are in the form of attribute/value pairs.
* </p>
*
* <pre>
* parameter = attribute "=" value
* attribute = token
* value = token | quoted-string
* </pre>
*
* @author <a href="mailto:oleg at ural.com">Oleg Kalnichevski</a>
*
*
* @deprecated Please use {@link java.net.URL#openConnection} instead. Please
* visit <a href=
* "http://android-developers.blogspot.com/2011/09/androids-http-clients.html">this
* webpage</a> for further details.
*/
@Deprecated
public interface NameValuePair {
public interface NameValuePair
{
String getName();
String getValue();
}

View File

@@ -0,0 +1,51 @@
// Generated automatically from org.apache.http.client.utils.URIBuilder for testing purposes
package org.apache.http.client.utils;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.List;
import org.apache.http.NameValuePair;
public class URIBuilder
{
public Charset getCharset(){ return null; }
public List<NameValuePair> getQueryParams(){ return null; }
public List<String> getPathSegments(){ return null; }
public String getFragment(){ return null; }
public String getHost(){ return null; }
public String getPath(){ return null; }
public String getScheme(){ return null; }
public String getUserInfo(){ return null; }
public String toString(){ return null; }
public URI build(){ return null; }
public URIBuilder addParameter(String p0, String p1){ return null; }
public URIBuilder addParameters(List<NameValuePair> p0){ return null; }
public URIBuilder clearParameters(){ return null; }
public URIBuilder removeQuery(){ return null; }
public URIBuilder setCharset(Charset p0){ return null; }
public URIBuilder setCustomQuery(String p0){ return null; }
public URIBuilder setFragment(String p0){ return null; }
public URIBuilder setHost(String p0){ return null; }
public URIBuilder setParameter(String p0, String p1){ return null; }
public URIBuilder setParameters(List<NameValuePair> p0){ return null; }
public URIBuilder setParameters(NameValuePair... p0){ return null; }
public URIBuilder setPath(String p0){ return null; }
public URIBuilder setPathSegments(List<String> p0){ return null; }
public URIBuilder setPathSegments(String... p0){ return null; }
public URIBuilder setPort(int p0){ return null; }
public URIBuilder setQuery(String p0){ return null; }
public URIBuilder setScheme(String p0){ return null; }
public URIBuilder setUserInfo(String p0){ return null; }
public URIBuilder setUserInfo(String p0, String p1){ return null; }
public URIBuilder(){}
public URIBuilder(String p0){}
public URIBuilder(String p0, Charset p1){}
public URIBuilder(URI p0){}
public URIBuilder(URI p0, Charset p1){}
public boolean isAbsolute(){ return false; }
public boolean isOpaque(){ return false; }
public boolean isPathEmpty(){ return false; }
public boolean isQueryEmpty(){ return false; }
public int getPort(){ return 0; }
}

View File

@@ -0,0 +1,34 @@
// Generated automatically from org.apache.http.client.utils.URLEncodedUtils for testing purposes
package org.apache.http.client.utils;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Scanner;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.util.CharArrayBuffer;
public class URLEncodedUtils
{
public URLEncodedUtils(){}
public static List<NameValuePair> parse(CharArrayBuffer p0, Charset p1, char... p2){ return null; }
public static List<NameValuePair> parse(HttpEntity p0){ return null; }
public static List<NameValuePair> parse(String p0, Charset p1){ return null; }
public static List<NameValuePair> parse(String p0, Charset p1, char... p2){ return null; }
public static List<NameValuePair> parse(URI p0, Charset p1){ return null; }
public static List<NameValuePair> parse(URI p0, String p1){ return null; }
public static List<String> parsePathSegments(CharSequence p0){ return null; }
public static List<String> parsePathSegments(CharSequence p0, Charset p1){ return null; }
public static String CONTENT_TYPE = null;
public static String format(Iterable<? extends NameValuePair> p0, Charset p1){ return null; }
public static String format(Iterable<? extends NameValuePair> p0, char p1, Charset p2){ return null; }
public static String format(List<? extends NameValuePair> p0, String p1){ return null; }
public static String format(List<? extends NameValuePair> p0, char p1, String p2){ return null; }
public static String formatSegments(Iterable<String> p0, Charset p1){ return null; }
public static String formatSegments(String... p0){ return null; }
public static boolean isEncoded(HttpEntity p0){ return false; }
public static void parse(List<NameValuePair> p0, Scanner p1, String p2){}
public static void parse(List<NameValuePair> p0, Scanner p1, String p2, String p3){}
}

View File

@@ -1,93 +1,28 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.util.ByteArrayBuffer for testing purposes
package org.apache.http.util;
import java.io.Serializable;
import org.apache.http.util.CharArrayBuffer;
public final class ByteArrayBuffer implements Serializable {
public ByteArrayBuffer(final int capacity) {
}
public void append(final byte[] b, final int off, final int len) {
}
public void append(final int b) {
}
public void append(final char[] b, final int off, final int len) {
}
public void append(final CharArrayBuffer b, final int off, final int len) {
}
public void clear() {
}
public byte[] toByteArray() {
return null;
}
public int byteAt(final int i) {
return 0;
}
public int capacity() {
return 0;
}
public int length() {
return 0;
}
public void ensureCapacity(final int required) {
}
public byte[] buffer() {
return null;
}
public void setLength(final int len) {
}
public boolean isEmpty() {
return false;
}
public boolean isFull() {
return false;
}
public int indexOf(final byte b, final int from, final int to) {
return 0;
}
public int indexOf(final byte b) {
return 0;
}
public class ByteArrayBuffer implements Serializable
{
protected ByteArrayBuffer() {}
public ByteArrayBuffer(int p0){}
public boolean isEmpty(){ return false; }
public boolean isFull(){ return false; }
public byte[] buffer(){ return null; }
public byte[] toByteArray(){ return null; }
public int byteAt(int p0){ return 0; }
public int capacity(){ return 0; }
public int indexOf(byte p0){ return 0; }
public int indexOf(byte p0, int p1, int p2){ return 0; }
public int length(){ return 0; }
public void append(CharArrayBuffer p0, int p1, int p2){}
public void append(byte[] p0, int p1, int p2){}
public void append(char[] p0, int p1, int p2){}
public void append(int p0){}
public void clear(){}
public void ensureCapacity(int p0){}
public void setLength(int p0){}
}

View File

@@ -1,127 +1,36 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.http.util.CharArrayBuffer for testing purposes
package org.apache.http.util;
import java.io.Serializable;
import java.nio.CharBuffer;
public final class CharArrayBuffer implements CharSequence, Serializable {
public CharArrayBuffer(final int capacity) {
}
public void append(final char[] b, final int off, final int len) {
}
public void append(final String str) {
}
public void append(final CharArrayBuffer b, final int off, final int len) {
}
public void append(final CharArrayBuffer b) {
}
public void append(final char ch) {
}
public void append(final byte[] b, final int off, final int len) {
}
public void append(final ByteArrayBuffer b, final int off, final int len) {
}
public void append(final Object obj) {
}
public void clear() {
}
public char[] toCharArray() {
return null;
}
@Override
public char charAt(final int i) {
return 0;
}
public char[] buffer() {
return null;
}
public int capacity() {
return 0;
}
@Override
public int length() {
return 0;
}
public void ensureCapacity(final int required) {
}
public void setLength(final int len) {
}
public boolean isEmpty() {
return false;
}
public boolean isFull() {
return false;
}
public int indexOf(final int ch, final int from, final int to) {
return 0;
}
public int indexOf(final int ch) {
return 0;
}
public String substring(final int beginIndex, final int endIndex) {
return null;
}
public String substringTrimmed(final int beginIndex, final int endIndex) {
return null;
}
@Override
public CharSequence subSequence(final int beginIndex, final int endIndex) {
return null;
}
@Override
public String toString() {
return null;
}
import org.apache.http.util.ByteArrayBuffer;
public class CharArrayBuffer implements CharSequence, Serializable
{
protected CharArrayBuffer() {}
public CharArrayBuffer(int p0){}
public CharSequence subSequence(int p0, int p1){ return null; }
public String substring(int p0, int p1){ return null; }
public String substringTrimmed(int p0, int p1){ return null; }
public String toString(){ return null; }
public boolean isEmpty(){ return false; }
public boolean isFull(){ return false; }
public char charAt(int p0){ return '0'; }
public char[] buffer(){ return null; }
public char[] toCharArray(){ return null; }
public int capacity(){ return 0; }
public int indexOf(int p0){ return 0; }
public int indexOf(int p0, int p1, int p2){ return 0; }
public int length(){ return 0; }
public void append(ByteArrayBuffer p0, int p1, int p2){}
public void append(CharArrayBuffer p0){}
public void append(CharArrayBuffer p0, int p1, int p2){}
public void append(Object p0){}
public void append(String p0){}
public void append(byte[] p0, int p1, int p2){}
public void append(char p0){}
public void append(char[] p0, int p1, int p2){}
public void clear(){}
public void ensureCapacity(int p0){}
public void setLength(int p0){}
}