Skip to content

Commit

Permalink
Preparing to work on #42
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 22, 2018
1 parent 32e04f5 commit afb81e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/ctc/wstx/api/CommonConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class CommonConfig
///////////////////////////////////////////////////////////////////////
// Implementation info
///////////////////////////////////////////////////////////////////////
*/
*/

protected final static String IMPL_NAME = "woodstox";

Expand All @@ -42,7 +42,7 @@ abstract class CommonConfig
///////////////////////////////////////////////////////////////////////
// Internal constants
///////////////////////////////////////////////////////////////////////
*/
*/

final static int CPROP_IMPL_NAME = 1;
final static int CPROP_IMPL_VERSION = 2;
Expand Down Expand Up @@ -83,7 +83,7 @@ abstract class CommonConfig
///////////////////////////////////////////////////////////////////////
// Shared config
///////////////////////////////////////////////////////////////////////
*/
*/

/**
* As per [WSTX-277], can specify whether prefix for the
Expand All @@ -95,7 +95,7 @@ abstract class CommonConfig
///////////////////////////////////////////////////////////////////////
// Construction
///////////////////////////////////////////////////////////////////////
*/
*/

/**
* Constructor used by sub-classes
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/ctc/wstx/evt/WstxEventReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.ctc.wstx.cfg.ErrorConsts;
import com.ctc.wstx.exc.WstxParsingException;
import com.ctc.wstx.sr.StreamScanner;

/**
* Woodstox version, based on generic Stax reference implementation
Expand All @@ -31,9 +32,13 @@
public class WstxEventReader
extends Stax2EventReaderImpl
{
protected final boolean mCfgMultiDocMode;

public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
{
super(a, r);
mCfgMultiDocMode = (r instanceof StreamScanner)
&& ((StreamScanner) r).getConfig().inputParsingModeDocuments();
}

/*
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/ctc/wstx/sr/StreamScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,13 @@ protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
}
}

/**
* @since 5.2
*/
public ReaderConfig getConfig() {
return mConfig;
}

/*
///////////////////////////////////////////////////////////////////////
// Package API
Expand Down

0 comments on commit afb81e5

Please sign in to comment.