congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
org.snmp4j.asn1
Code IndexAdd Tabnine to your IDE (free)

How to use org.snmp4j.asn1

Best Java code snippets using org.snmp4j.asn1 (Showing top 20 results out of 315)

origin: org.kaazing/snmp4j

public void decodeBER(BERInputStream inputStream) throws java.io.IOException {
 MutableByte type = new BER.MutableByte();
 BER.decodeNull(inputStream, type);
 this.syntax = type.getValue() & 0xFF;
}
origin: org.snmp4j/snmp4j

public MutableByte(byte value) {
 setValue(value);
}
origin: org.snmp4j/snmp4j

public int getBERLength() {
  int length = BER.getOIDLength(value);
  return length + BER.getBERLengthOfLength(length) + 1;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

 public MessageLength getMessageLength(ByteBuffer buf) throws IOException {
  MutableByte type = new MutableByte();
  BERInputStream is = new BERInputStream(buf);
  int ml = BER.decodeHeader(is, type, false);
  int hl = (int)is.getPosition();
  MessageLength messageLength = new MessageLength(hl, ml);
  return messageLength;
 }
}
origin: org.kaazing/snmp4j

private static String getPositionMessage(BERInputStream is) {
 return " at position "+is.getPosition();
}
origin: org.snmp4j/snmp4j

public int getBERLength() {
 return value.length + BER.getBERLengthOfLength(value.length) + 1;
}
origin: org.kaazing/snmp4j

/**
 * Decodes a ASN.1 length.
 * @param is
 *    an <code>InputStream</code>
 * @return
 *    the decoded length.
 * @throws IOException
 */
public static final int decodeLength(BERInputStream is)
  throws IOException
{
 return decodeLength(is, true);
}
origin: org.kaazing/snmp4j

public void encodeBER(OutputStream outputStream) throws java.io.IOException {
 BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value);
}
origin: org.snmp4j/snmp4j

public void encodeBER(OutputStream outputStream) throws java.io.IOException {
 BER.encodeInteger(outputStream, BER.INTEGER, value);
}
origin: org.snmp4j/snmp4j

  public MessageLength getMessageLength(ByteBuffer buf) throws IOException {
    MutableByte type = new MutableByte();
    BERInputStream is = new BERInputStream(buf);
    int ml = BER.decodeHeader(is, type, false);
    int hl = (int) is.getPosition();
    MessageLength messageLength = new MessageLength(hl, ml);
    return messageLength;
  }
}
origin: org.snmp4j/snmp4j

public void decodeBER(BERInputStream inputStream) throws java.io.IOException {
 MutableByte type = new BER.MutableByte();
 BER.decodeNull(inputStream, type);
 this.syntax = type.getValue() & 0xFF;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public int getBERLength() {
 int length = BER.getOIDLength(value);
 return length + BER.getBERLengthOfLength(length) + 1;
}
origin: org.snmp4j/snmp4j

public static String getPositionMessage(BERInputStream is) {
 return " at position "+is.getPosition();
}
origin: org.kaazing/snmp4j

public int getBERLength() {
 return value.length + BER.getBERLengthOfLength(value.length) + 1;
}
origin: org.snmp4j/snmp4j

public void encodeBER(OutputStream outputStream) throws java.io.IOException {
 BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value);
}
origin: org.kaazing/snmp4j

 public MessageLength getMessageLength(ByteBuffer buf) throws IOException {
  MutableByte type = new MutableByte();
  BERInputStream is = new BERInputStream(buf);
  int ml = BER.decodeHeader(is, type);
  int hl = (int)is.getPosition();
  MessageLength messageLength = new MessageLength(hl, ml);
  return messageLength;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public void decodeBER(BERInputStream inputStream) throws java.io.IOException {
 MutableByte type = new BER.MutableByte();
 BER.decodeNull(inputStream, type);
 this.syntax = type.getValue() & 0xFF;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

private static String getPositionMessage(BERInputStream is) {
 return " at position "+is.getPosition();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public int getBERLength() {
 return value.length + BER.getBERLengthOfLength(value.length) + 1;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.snmp4j

public void encodeBER(OutputStream outputStream) throws java.io.IOException {
 BER.encodeUnsignedInt64(outputStream, BER.COUNTER64, value);
}
org.snmp4j.asn1

Most used classes

  • BER
    The BER class provides utility methods for the BER encoding and decoding.
  • BER$MutableByte
    The MutableByte class serves for exchanging type information from the various decode* methods.
  • BERInputStream
    The BERInputStream class wraps a ByteBuffer and implements the InputStream abstract class. position
  • BEROutputStream
    The BEROutputStream class wraps a ByteBuffer to support BER encoding. The backing buffer can be acce
  • BERSerializable
    The interface BERSerializable has to be implemented by any data type class that needs to be serializ
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now