public class CryptoHelper extends Object
The crypto helper.
Constructor and Description |
---|
CryptoHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
checkNode(com.aspose.ms.System.Xml.XmlTextReader reader,
String namespaceUri,
String localName)
Validate the current node state
|
static byte[] |
cloneToFit(byte[] input,
int size)
Return a copy of the array, sized to fit
|
static byte[] |
cloneToFit(byte[] input,
int size,
byte pad)
Return a copy of the array, sized to fit
|
static void |
moveToEndElement(com.aspose.ms.System.Xml.XmlTextReader reader)
Position the reader on the next endElement, or remain on the start element if Empty
|
static void |
moveToNextContent(com.aspose.ms.System.Xml.XmlTextReader reader)
Move to the next piece of Content.
|
static void |
moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader)
Move to the next piece of Content, and check if it's an Element.
|
static void |
moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader,
String namespaceUri,
String localName)
Position the reader on the next startElement
|
static byte[] |
readBytes(com.aspose.ms.System.IO.Stream stream,
int bytesToRead)
Read a given number of bytes and fail if not all present.
|
static short |
readInt16(com.aspose.ms.System.IO.Stream stream)
Read an Int16.
|
static int |
readInt32(com.aspose.ms.System.IO.Stream stream)
Read an Int32.
|
static long |
readInt64(com.aspose.ms.System.IO.Stream stream)
Read an Int64.
|
static void |
transformInPlace(com.aspose.ms.System.Security.Cryptography.ICryptoTransform transform,
byte[] buffer,
int offset,
int count)
Perform the crypto operation in-place.
|
static void |
writeInt16(com.aspose.ms.System.IO.Stream stream,
short value)
Write an Int16.
|
static void |
writeInt32(com.aspose.ms.System.IO.Stream stream,
int value)
Write an Int32.
|
static void |
writeInt64(com.aspose.ms.System.IO.Stream stream,
long value)
Write an Int64.
|
public static byte[] cloneToFit(byte[] input, int size)
Return a copy of the array, sized to fit
public static byte[] cloneToFit(byte[] input, int size, byte pad)
Return a copy of the array, sized to fit
public static byte[] readBytes(com.aspose.ms.System.IO.Stream stream, int bytesToRead)
Read a given number of bytes and fail if not all present.
public static short readInt16(com.aspose.ms.System.IO.Stream stream)
Read an Int16.
public static int readInt32(com.aspose.ms.System.IO.Stream stream)
Read an Int32.
public static long readInt64(com.aspose.ms.System.IO.Stream stream)
Read an Int64.
public static void writeInt16(com.aspose.ms.System.IO.Stream stream, short value)
Write an Int16.
public static void writeInt32(com.aspose.ms.System.IO.Stream stream, int value)
Write an Int32.
public static void writeInt64(com.aspose.ms.System.IO.Stream stream, long value)
Write an Int64.
public static void transformInPlace(com.aspose.ms.System.Security.Cryptography.ICryptoTransform transform, byte[] buffer, int offset, int count)
Perform the crypto operation in-place.
public static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader)
Move to the next piece of Content, and check if it's an Element.
public static void moveToNextContent(com.aspose.ms.System.Xml.XmlTextReader reader)
Move to the next piece of Content.
public static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader, String namespaceUri, String localName)
Position the reader on the next startElement
public static void moveToEndElement(com.aspose.ms.System.Xml.XmlTextReader reader)
Position the reader on the next endElement, or remain on the start element if Empty
Copyright (c) 2016 Aspose. All Rights Reserved.