IXmlJsonReaderInitializer.SetInput 메서드

정의

JSON(JavaScript Object Notation) 사용 판독기를 JSON으로 인코딩된 데이터가 포함된 지정된 스트림 또는 버퍼로 다시 초기화합니다.

오버로드

Name Description
SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

JSON(JavaScript Object Notation)이 설정된 판독기를 JSON으로 인코딩된 데이터가 포함된 지정된 스트림으로 다시 초기화합니다.

SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

JSON(JavaScript Object Notation)이 설정된 판독기를 JSON으로 인코딩된 데이터가 포함된 지정된 버퍼로 다시 초기화합니다.

설명

메서드 중 하나에서 만든 개체는 XmlDictionaryReader 이 인터페이스를 CreateJsonReader 구현하며 JSON으로 인코딩된 데이터를 읽을 준비가 된 것입니다. 그러나 사용자가 동일한 XmlDictionaryReader 개체를 다시 사용하여 다른 JSON으로 인코딩된 데이터를 읽으려는 경우 판독기를 두 번째 데이터 세트로 초기화하여 메서드 중 SetInput 하나를 사용하여 읽어야 합니다.

매개 변수의 MaxBytesPerRead 일부로 설정된 값은 quotas 메서드를 사용하여 스트림 SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 에서 입력을 읽을 때 메모리로 읽는 정보의 양만 제한하며 메서드를 사용하여 버퍼에서 정보를 읽을 때 SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 는 적용되지 않습니다. 로드할 수 있는 특성 수에 대한 제한은 JSON 컨텍스트와 관련이 없습니다.

SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs

JSON(JavaScript Object Notation)이 설정된 판독기를 JSON으로 인코딩된 데이터가 포함된 지정된 스트림으로 다시 초기화합니다.

public:
 void SetInput(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public void SetInput(System.IO.Stream stream, System.Text.Encoding? encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose? onClose);
public void SetInput(System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
abstract member SetInput : System.IO.Stream * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> unit
Public Sub SetInput (stream As Stream, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose)

매개 변수

stream
Stream

읽을 입력 Stream 입니다.

encoding
Encoding

Encoding 판독기에서 사용하는 것입니다.

quotas
XmlDictionaryReaderQuotas

XmlDictionaryReaderQuotas 적용할 수 있습니다.

onClose
OnXmlDictionaryReaderClose

판독기를 닫을 때 호출할 대리자입니다.

설명

XmlDictionaryReader JSON으로 인코딩된 스트림을 읽는 개체는 메서드를 호출 SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 하여 다시 초기화하여 다시 사용할 수 있습니다.

판독기는 UTF-8 및 UTF-16(big-or little-endian) 인코딩을 해석할 수 있습니다. 판독기는 인코딩 집합이 전달되거나 전달되면 인코딩이 자동으로 검색되는 경우 null 초기화 시 인코딩 집합을 사용합니다.

매개 변수의 MaxBytesPerRead 일부로 설정된 값은 quotas 메서드를 사용하여 스트림 SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 에서 입력을 읽을 때 메모리로 읽는 정보의 양만 제한하며 메서드를 사용하여 버퍼에서 정보를 읽을 때 SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 는 적용되지 않습니다. 로드할 수 있는 특성 수에 대한 제한은 JSON 컨텍스트와 관련이 없습니다.

적용 대상

SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs
Source:
IXmlJsonReaderInitializer.cs

JSON(JavaScript Object Notation)이 설정된 판독기를 JSON으로 인코딩된 데이터가 포함된 지정된 버퍼로 다시 초기화합니다.

public:
 void SetInput(cli::array <System::Byte> ^ buffer, int offset, int count, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public void SetInput(byte[] buffer, int offset, int count, System.Text.Encoding? encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose? onClose);
public void SetInput(byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
abstract member SetInput : byte[] * int * int * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> unit
Public Sub SetInput (buffer As Byte(), offset As Integer, count As Integer, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose)

매개 변수

buffer
Byte[]

읽을 입력 Byte 버퍼 배열입니다.

offset
Int32

에서 읽을 시작 위치입니다 buffer.

count
Int32

에서 buffer읽을 수 있는 바이트 수입니다.

encoding
Encoding

Encoding 판독기에서 사용하는 것입니다.

quotas
XmlDictionaryReaderQuotas

적용할 값입니다 XmlDictionaryReaderQuotas .

onClose
OnXmlDictionaryReaderClose

OnXmlDictionaryReaderClose 판독기를 닫을 때 호출할 대리자입니다.

설명

XmlDictionaryReader JSON 인코딩 버퍼를 읽는 Byte 개체는 메서드를 호출 SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 하여 다시 초기화하여 다시 사용할 수 있습니다.

판독기는 UTF-8 및 UTF-16(big-or little-endian) 인코딩을 해석할 수 있습니다. 판독기는 인코딩 집합이 전달되거나 전달되면 인코딩이 자동으로 검색되는 경우 null 초기화 시 인코딩 집합을 사용합니다.

매개 변수의 MaxBytesPerRead 일부로 설정된 값은 quotas 메서드를 사용하여 스트림 SetInput(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 에서 입력을 읽을 때 메모리로 읽는 정보의 양만 제한하며 메서드를 사용하여 버퍼에서 정보를 읽을 때 SetInput(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 는 적용되지 않습니다. 로드할 수 있는 특성 수에 대한 제한은 JSON 컨텍스트와 관련이 없습니다.

적용 대상