Skip to content

Commit afb81e5

Browse files
committed
Preparing to work on #42
1 parent 32e04f5 commit afb81e5

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

src/main/java/com/ctc/wstx/api/CommonConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract class CommonConfig
2222
///////////////////////////////////////////////////////////////////////
2323
// Implementation info
2424
///////////////////////////////////////////////////////////////////////
25-
*/
25+
*/
2626

2727
protected final static String IMPL_NAME = "woodstox";
2828

@@ -42,7 +42,7 @@ abstract class CommonConfig
4242
///////////////////////////////////////////////////////////////////////
4343
// Internal constants
4444
///////////////////////////////////////////////////////////////////////
45-
*/
45+
*/
4646

4747
final static int CPROP_IMPL_NAME = 1;
4848
final static int CPROP_IMPL_VERSION = 2;
@@ -83,7 +83,7 @@ abstract class CommonConfig
8383
///////////////////////////////////////////////////////////////////////
8484
// Shared config
8585
///////////////////////////////////////////////////////////////////////
86-
*/
86+
*/
8787

8888
/**
8989
* As per [WSTX-277], can specify whether prefix for the
@@ -95,7 +95,7 @@ abstract class CommonConfig
9595
///////////////////////////////////////////////////////////////////////
9696
// Construction
9797
///////////////////////////////////////////////////////////////////////
98-
*/
98+
*/
9999

100100
/**
101101
* Constructor used by sub-classes

src/main/java/com/ctc/wstx/evt/WstxEventReader.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import com.ctc.wstx.cfg.ErrorConsts;
2525
import com.ctc.wstx.exc.WstxParsingException;
26+
import com.ctc.wstx.sr.StreamScanner;
2627

2728
/**
2829
* Woodstox version, based on generic Stax reference implementation
@@ -31,9 +32,13 @@
3132
public class WstxEventReader
3233
extends Stax2EventReaderImpl
3334
{
35+
protected final boolean mCfgMultiDocMode;
36+
3437
public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
3538
{
3639
super(a, r);
40+
mCfgMultiDocMode = (r instanceof StreamScanner)
41+
&& ((StreamScanner) r).getConfig().inputParsingModeDocuments();
3742
}
3843

3944
/*

src/main/java/com/ctc/wstx/sr/StreamScanner.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,13 @@ protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
407407
}
408408
}
409409

410+
/**
411+
* @since 5.2
412+
*/
413+
public ReaderConfig getConfig() {
414+
return mConfig;
415+
}
416+
410417
/*
411418
///////////////////////////////////////////////////////////////////////
412419
// Package API

0 commit comments

Comments
 (0)