Examples of GETbytes()


Examples of com.ngt.jopenmetaverse.shared.protocol.primitives.TextureEntry.GetBytes()

          face.setTextureID(Textures[i].TextureID);
          JLogger.debug("Sending texture entry for " + AvatarTextureIndex.get(i) + " to " + Textures[i].TextureID);
        }
      }

      set.ObjectData.TextureEntry = te.GetBytes();
      MyTextures = te;

      //endregion TextureEntry

      //region WearableData
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.UUID.GetBytes()

  @Test
  public void UUIDs()
  {
    // Creation
    UUID a = new UUID();
    byte[] bytes = a.GetBytes();
    for (int i = 0; i < 16; i++)
      Assert.assertTrue(bytes[i] == 0x00);

    // Comparison
    a = new UUID(new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A,
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.GETbytes()

        if (isHTTP() || isHTTPS()) {
                final HTTPClient client = new HTTPClient();
                client.setTimout(timeout);
                client.setUserAgent(userAgent);
                client.setHost(this.getHost());
                return new ByteArrayInputStream(client.GETbytes(this));
        }
       
        return null;
    }
   
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.GETbytes()

        if (isHTTP() || isHTTPS()) {
                final HTTPClient client = new HTTPClient();
                client.setTimout(timeout);
                client.setUserAgent(userAgent);
                client.setHost(this.getHost());
                return client.GETbytes(this);
        }
       
        return null;
    }
   
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.GETbytes()

        if (isHTTP() || isHTTPS()) {
                final HTTPClient client = new HTTPClient();
                client.setTimout(timeout);
                client.setUserAgent(userAgent);
                client.setHost(getHost());
                return new ByteArrayInputStream(client.GETbytes(this));
        }

        return null;
    }
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.GETbytes()

        if (isHTTP() || isHTTPS()) {
                final HTTPClient client = new HTTPClient();
                client.setTimout(timeout);
                client.setUserAgent(userAgent);
                client.setHost(getHost());
                return client.GETbytes(this);
        }

        return null;
    }
View Full Code Here

Examples of net.yacy.cora.protocol.http.HTTPClient.GETbytes()

        final HTTPClient client = new HTTPClient();
        client.setHeader(reqHeader.entrySet());
        byte[] content = null;
        try {
            // send request
          content = client.GETbytes(seedURL);
        } catch (final Exception e) {
          throw new IOException("Unable to download seed file '" + seedURL + "'. " + e.getMessage());
        }
           
        // check response code
View Full Code Here

Examples of net.yacy.cora.protocol.http.HTTPClient.GETbytes()

        client.setHeader(reqHeader.entrySet());

        // download signature first, if public key is available
        try {
            if (this.publicKey != null) {
              final byte[] signatureData = client.GETbytes(getUrl().toString() + ".sig");
                if (signatureData == null) {
                    Log.logWarning("yacyVersion", "download of signature " + getUrl().toString() + " failed. ignoring signature file.");
                }
                else signatureBytes = Base64Order.standardCoder.decode(UTF8.String(signatureData).trim());
            }
View Full Code Here

Examples of net.yacy.cora.protocol.http.HTTPClient.GETbytes()

            if (row == null) continue;
            String url = "http://" + host + ":" + port + UTF8.String(row.get(WorkTables.TABLE_API_COL_URL));
            url += "&" + WorkTables.TABLE_API_COL_APICALL_PK + "=" + UTF8.String(row.getPK());
            Log.logInfo("WorkTables", "executing url: " + url);
            try {
                client.GETbytes(url);
                l.put(url, client.getStatusCode());
            } catch (IOException e) {
                Log.logException(e);
                l.put(url, -1);
            }
View Full Code Here

Examples of net.yacy.cora.protocol.http.HTTPClient.GETbytes()

        client.setRealm(realm);
        client.setTimout(120000);
        String url = "http://" + host + ":" + port + path;
        if (pk != null) url += "&" + WorkTables.TABLE_API_COL_APICALL_PK + "=" + UTF8.String(pk);
        try {
            client.GETbytes(url);
            return client.getStatusCode();
        } catch (IOException e) {
            Log.logException(e);
            return -1;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.